1
0
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:
Evgeny Petrov 2016-10-29 23:23:39 +03:00 committed by GitHub
parent aad9251d48
commit d2e1acde6a

View File

@ -231,7 +231,7 @@ class Message(JsonDeserializable):
opts['document'] = Document.de_json(obj['document']) opts['document'] = Document.de_json(obj['document'])
content_type = 'document' content_type = 'document'
if 'game' in obj: if 'game' in obj:
opts['game'] = Game.de_json(obj['photo']) opts['game'] = Game.de_json(obj['game'])
content_type = 'game' content_type = 'game'
if 'photo' in obj: if 'photo' in obj:
opts['photo'] = Message.parse_photo(obj['photo']) opts['photo'] = Message.parse_photo(obj['photo'])