Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Commit

Permalink
Add missed update types
Browse files Browse the repository at this point in the history
  • Loading branch information
alissonlauffer committed Apr 22, 2021
1 parent fb71310 commit cf31287
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
9 changes: 6 additions & 3 deletions amanobot/__init__.py
Expand Up @@ -1396,14 +1396,17 @@ def collector():
def relay_to_collector(update):
key = _find_first_key(update, ['message',
'edited_message',
'poll',
'channel_post',
'edited_channel_post',
'callback_query',
'inline_query',
'chosen_inline_result',
'callback_query',
'shipping_query',
'pre_checkout_query'])
'pre_checkout_query',
'poll',
'poll_answer',
'my_chat_member',
'chat_member'])
collect_queue.put(update[key])
return update['update_id']

Expand Down
8 changes: 6 additions & 2 deletions amanobot/aio/__init__.py
Expand Up @@ -961,11 +961,15 @@ def handle(update):
'edited_message',
'channel_post',
'edited_channel_post',
'callback_query',
'inline_query',
'chosen_inline_result',
'callback_query',
'shipping_query',
'pre_checkout_query'])
'pre_checkout_query',
'poll',
'poll_answer',
'my_chat_member',
'chat_member'])

callback(update[key])
except:
Expand Down

0 comments on commit cf31287

Please sign in to comment.