mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 14:35:00 +01:00
Fix regression on Telegram objects with thumb properties
This commit is contained in:
parent
be23ff5d29
commit
49ff02dcf4
4 changed files with 6 additions and 1 deletions
|
@ -65,4 +65,6 @@ class Document(TelegramObject):
|
|||
if not data:
|
||||
return None
|
||||
|
||||
data['thumb'] = PhotoSize.de_json(data.get('thumb'))
|
||||
|
||||
return Document(**data)
|
||||
|
|
|
@ -57,4 +57,3 @@ class ForceReply(ReplyMarkup):
|
|||
return None
|
||||
|
||||
return ForceReply(**data)
|
||||
|
||||
|
|
|
@ -67,4 +67,6 @@ class Sticker(TelegramObject):
|
|||
if not data:
|
||||
return None
|
||||
|
||||
data['thumb'] = PhotoSize.de_json(data.get('thumb'))
|
||||
|
||||
return Sticker(**data)
|
||||
|
|
|
@ -74,4 +74,6 @@ class Video(TelegramObject):
|
|||
if not data:
|
||||
return None
|
||||
|
||||
data['thumb'] = PhotoSize.de_json(data.get('thumb'))
|
||||
|
||||
return Video(**data)
|
||||
|
|
Loading…
Reference in a new issue