From b2cd3c9716a5395a0d753727465e65acf100c6b2 Mon Sep 17 00:00:00 2001 From: Evgeny Petrov Date: Mon, 21 Nov 2016 09:06:36 +0300 Subject: [PATCH] Added channel_post and edited_channel_post to Update object --- telebot/types.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/telebot/types.py b/telebot/types.py index 0434a33..0ac978e 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -103,6 +103,10 @@ class Update(JsonDeserializable): message = Message.de_json(obj['message']) if 'edited_message' in obj: edited_message = Message.de_json(obj['edited_message']) + if 'channel_post' in obj: + channel_post = Message.de_json(obj['channel_post']) + if 'edited_channel_post' in obj: + edited_channel_post = Message.de_json(obj['edited_channel_post']) if 'inline_query' in obj: inline_query = InlineQuery.de_json(obj['inline_query']) if 'chosen_inline_result' in obj: