From 8187e6b8fd9c40334c2f432435563bda4a16a96b Mon Sep 17 00:00:00 2001 From: eternnoir Date: Fri, 3 Jul 2015 09:43:26 +0800 Subject: [PATCH] Add delete_chat_photo and group_chat_created support. --- telebot/types.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/telebot/types.py b/telebot/types.py index ab292d4..93bb03c 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -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