mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #245 from Kondra007/patch-11
Fixed API object type mismatch
This commit is contained in:
commit
f6d5358d1a
@ -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