mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Add delete_chat_photo and group_chat_created support.
This commit is contained in:
parent
de88217c37
commit
8187e6b8fd
@ -150,6 +150,10 @@ class Message(JsonDeserializable):
|
||||
if 'new_chat_photo' in obj:
|
||||
opts['new_chat_photo'] = obj['new_chat_photo']
|
||||
content_type = 'new_chat_photo'
|
||||
if 'delete_chat_photo' in obj:
|
||||
opts['delete_chat_photo'] = obj['delete_chat_photo']
|
||||
if 'group_chat_created' in obj:
|
||||
opts['group_chat_created'] = obj['group_chat_created']
|
||||
return Message(message_id, from_user, date, chat, content_type, opts)
|
||||
|
||||
@classmethod
|
||||
|
Loading…
Reference in New Issue
Block a user