1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Added channel_post and edited_channel_post to Update object

This commit is contained in:
Evgeny Petrov 2016-11-21 09:06:36 +03:00 committed by GitHub
parent 1c9a9b9622
commit b2cd3c9716

View File

@ -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: