diff --git a/telebot/types.py b/telebot/types.py index 5de17ae..c262663 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -342,7 +342,9 @@ class Video(JsonDeserializable): width = obj['width'] height = obj['height'] duration = obj['duration'] - thumb = obj.get('thumb') + thumb = None + if 'thumb' in obj: + thumb = PhotoSize.de_json(obj['thumb']) mime_type = obj.get('mime_type') file_size = obj.get('file_size') return cls(file_id, width, height, duration, thumb, mime_type, file_size)