mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Fixed API object type mismatch
This commit is contained in:
parent
aad9251d48
commit
d2e1acde6a
@ -231,7 +231,7 @@ class Message(JsonDeserializable):
|
||||
opts['document'] = Document.de_json(obj['document'])
|
||||
content_type = 'document'
|
||||
if 'game' in obj:
|
||||
opts['game'] = Game.de_json(obj['photo'])
|
||||
opts['game'] = Game.de_json(obj['game'])
|
||||
content_type = 'game'
|
||||
if 'photo' in obj:
|
||||
opts['photo'] = Message.parse_photo(obj['photo'])
|
||||
|
Loading…
Reference in New Issue
Block a user