1
0
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:
FrankWang 2016-10-30 07:03:53 +08:00 committed by GitHub
commit f6d5358d1a

View File

@ -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'])