Skip to content

Commit b2cd3c9

Browse files
Added channel_post and edited_channel_post to Update object
1 parent 1c9a9b9 commit b2cd3c9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎telebot/types.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ def de_json(cls, json_type):
103103
message = Message.de_json(obj['message'])
104104
if 'edited_message' in obj:
105105
edited_message = Message.de_json(obj['edited_message'])
106+
if 'channel_post' in obj:
107+
channel_post = Message.de_json(obj['channel_post'])
108+
if 'edited_channel_post' in obj:
109+
edited_channel_post = Message.de_json(obj['edited_channel_post'])
106110
if 'inline_query' in obj:
107111
inline_query = InlineQuery.de_json(obj['inline_query'])
108112
if 'chosen_inline_result' in obj:

0 commit comments

Comments
 (0)