Correct method to fetch thumbnail image for VideoNote entity.

parent 1f3ecd07
...@@ -23,5 +23,13 @@ namespace Longman\TelegramBot\Entities; ...@@ -23,5 +23,13 @@ namespace Longman\TelegramBot\Entities;
*/ */
class VideoNote extends Entity class VideoNote extends Entity
{ {
/**
* {@inheritdoc}
*/
protected function subEntities()
{
return [
'thumb' => PhotoSize::class,
];
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment