1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Fixed supper for new/left_chat_member content types

This commit is contained in:
Antonio Pitasi 2016-04-24 17:53:13 +02:00
parent 0a856f4e83
commit 7ec33d43b3

View File

@ -210,8 +210,10 @@ class Message(JsonDeserializable):
content_type = 'venue'
if 'new_chat_member' in obj:
opts['new_chat_member'] = User.de_json(obj['new_chat_member'])
content_type = 'new_chat_member'
if 'left_chat_member' in obj:
opts['left_chat_member'] = User.de_json(obj['left_chat_member'])
content_type = 'left_chat_member'
if 'new_chat_title' in obj:
opts['new_chat_title'] = obj['new_chat_title']
if 'new_chat_photo' in obj: