mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #142 from Pitasi/master
Fixed new/left_chat_member content types
This commit is contained in:
commit
e6105d851c
@ -210,8 +210,10 @@ class Message(JsonDeserializable):
|
|||||||
content_type = 'venue'
|
content_type = 'venue'
|
||||||
if 'new_chat_member' in obj:
|
if 'new_chat_member' in obj:
|
||||||
opts['new_chat_member'] = User.de_json(obj['new_chat_member'])
|
opts['new_chat_member'] = User.de_json(obj['new_chat_member'])
|
||||||
|
content_type = 'new_chat_member'
|
||||||
if 'left_chat_member' in obj:
|
if 'left_chat_member' in obj:
|
||||||
opts['left_chat_member'] = User.de_json(obj['left_chat_member'])
|
opts['left_chat_member'] = User.de_json(obj['left_chat_member'])
|
||||||
|
content_type = 'left_chat_member'
|
||||||
if 'new_chat_title' in obj:
|
if 'new_chat_title' in obj:
|
||||||
opts['new_chat_title'] = obj['new_chat_title']
|
opts['new_chat_title'] = obj['new_chat_title']
|
||||||
if 'new_chat_photo' in obj:
|
if 'new_chat_photo' in obj:
|
||||||
|
Loading…
Reference in New Issue
Block a user