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

Commit

Permalink
resolved the Bot API 5.1 error (#8), closes #7
Browse files Browse the repository at this point in the history
* resolved the Bot API 5.1 error

* Add missing poll_answer type to update types and change order according to official API

Co-authored-by: Alisson Lauffer <alissonvitortc@gmail.com>
  • Loading branch information
JDaniloC and alissonlauffer committed Mar 9, 2021
1 parent 7c7f828 commit c460911
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions amanobot/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,15 @@ def _extract_message(update):
'edited_message',
'channel_post',
'edited_channel_post',
'callback_query',
'inline_query',
'chosen_inline_result',
'my_chat_member',
'callback_query',
'shipping_query',
'pre_checkout_query'])
'pre_checkout_query',
'poll',
'poll_answer',
'my_chat_member',
'chat_member'])
return key, update[key]


Expand Down

0 comments on commit c460911

Please sign in to comment.