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