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:
parent
1c9a9b9622
commit
b2cd3c9716
@ -103,6 +103,10 @@ class Update(JsonDeserializable):
|
|||||||
message = Message.de_json(obj['message'])
|
message = Message.de_json(obj['message'])
|
||||||
if 'edited_message' in obj:
|
if 'edited_message' in obj:
|
||||||
edited_message = Message.de_json(obj['edited_message'])
|
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:
|
if 'inline_query' in obj:
|
||||||
inline_query = InlineQuery.de_json(obj['inline_query'])
|
inline_query = InlineQuery.de_json(obj['inline_query'])
|
||||||
if 'chosen_inline_result' in obj:
|
if 'chosen_inline_result' in obj:
|
||||||
|
Loading…
Reference in New Issue
Block a user