From cff3f778bf5c591d87ee574255f25862704dac44 Mon Sep 17 00:00:00 2001 From: eternnoir Date: Fri, 3 Jul 2015 10:14:42 +0800 Subject: [PATCH] fix content_type bug. --- telebot/types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telebot/types.py b/telebot/types.py index 93bb03c..2ec183b 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -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