Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: "Setting unknown property: aki\telegram\types\Document::thumbnail" when using SendDocument #64

Open
lucadima15 opened this issue Jul 2, 2024 · 0 comments

Comments

@lucadima15
Copy link

lucadima15 commented Jul 2, 2024

To solve the issue, I added some code locally in aki\telegram\types\Document class:

  1. Added $_thumbnail property after $_thumb

  2. Added magic methods:

public function getThumbnail()
{
return $this->_thumbnail;
}

public function setThumbnail($value)
{
    $this->_thumbnail = new PhotoSize($value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant