From 7ec33d43b3b8f112dd74fa4e651e0818d5417ce8 Mon Sep 17 00:00:00 2001 From: Antonio Pitasi Date: Sun, 24 Apr 2016 17:53:13 +0200 Subject: [PATCH] Fixed supper for new/left_chat_member content types --- telebot/types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telebot/types.py b/telebot/types.py index 38e526b..c6f7d10 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -210,8 +210,10 @@ class Message(JsonDeserializable): content_type = 'venue' if 'new_chat_member' in obj: opts['new_chat_member'] = User.de_json(obj['new_chat_member']) + content_type = 'new_chat_member' if 'left_chat_member' in obj: opts['left_chat_member'] = User.de_json(obj['left_chat_member']) + content_type = 'left_chat_member' if 'new_chat_title' in obj: opts['new_chat_title'] = obj['new_chat_title'] if 'new_chat_photo' in obj: