yii2-bot-telegram
yii2-bot-telegram copied to clipboard
Error: "Setting unknown property: aki\telegram\types\Document::thumbnail" when using SendDocument
To solve the issue, I added some code locally in aki\telegram\types\Document class:
-
Added $_thumbnail property after $_thumb
-
Added magic methods:
public function getThumbnail() { return $this->_thumbnail; }
public function setThumbnail($value)
{
$this->_thumbnail = new PhotoSize($value);
}