-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bot API Huge Update - 7.0, introducing reactions, replies and some other changes #2106
Merged
Merged
Changes from 12 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
430e327
Start of bot API Update - 7.0
coder2020official 134f45b
Added the classes ReactionTypeEmoji and ReactionTypeCustomEmoji repre…
coder2020official 974395e
New handler: message_reaction_handler(untested)
coder2020official 8fee136
Fix tests for the new handler
coder2020official 97e0d4e
Fix tests #2
coder2020official 2fb2e30
Fix minor issue for tests #3
coder2020official 854c685
Added updates about reaction changes on a message with anonymous rea…
coder2020official 96b4ced
Fix tests for the new handler
coder2020official b6a0d6c
Added the method setMessageReaction that allows bots to react to mess…
coder2020official 7576458
Added the field available_reactions to the class Chat.
coder2020official ad816f2
Added the class ExternalReplyInfo and the field external_reply of typ…
coder2020official 5e01891
Added TextQuote and fixed extrernal_reply (forgot in previous commit)…
coder2020official 2604655
ReplyParameters support for sync, including backward compatibility
coder2020official 6211366
Fix the typo and therefore tests
coder2020official 3b5d2d7
Fix tests attempt 2
coder2020official c04ae53
Added reply_parameters to sync
coder2020official 545cedb
Fix some issues with the previous commit
coder2020official b8ef19d
Added support for linkpreviewoptions
coder2020official 0485c31
Replaced the field disable_web_page_preview with link_preview_options…
coder2020official a261174
Added the field link_preview_options to the class Message with infor…
coder2020official c406e6c
Added Copy,Delete,Forward Messages to sync and async
coder2020official 254387d
Renamed the class KeyboardButtonRequestUser to KeyboardButtonRequest…
coder2020official 350f7fe
Added the class UsersShared. Replaced the field user_shared in the …
coder2020official e1c9223
Chat Boosts full support for handlers;
coder2020official 137ea69
get_user_chat_boosts for sync and async; +UserChatBoosts
coder2020official ab2d1fa
Giveaways full support: start and end of giveaways, and information a…
coder2020official e290f27
Added the fields has_visible_story, accent_color_id, background_cust…
coder2020official af6f485
Added the class MessageOrigin and replaced the fields forward_from, …
coder2020official e94d5ce
Added InaccessibleMessage support, not sure on the implementation for…
coder2020official 456a9ed
Minor utils edit that adds all update types
coder2020official 39abb9d
Fix a typo
coder2020official 87404d3
Set func=None by default for new handlers;
coder2020official bc8120e
Fix issues related with reactions handlers
coder2020official f081ec8
Fix de_json for some classes
coder2020official 05a939b
Fix reply_markup issue with reply_parameters conflict
coder2020official 52a0314
Fix naming in Update class
Badiboy 79cc127
reply_to_message_id and allow_sending_without_reply deprecation
Badiboy 56fbcaf
disable_web_page_preview deprecation
Badiboy 778a02c
Fix forward_messages return value
Badiboy 0af7f6f
Fix forward_messages return value in Async
Badiboy 0ace17b
Fix the fix forward_messages return value
Badiboy 578d6a3
Fix message_reaction_x_handler description
Badiboy 4359f4f
Fix message_reaction_x_handler description for Async
Badiboy 9831ae2
Fix and align reply_parameters
Badiboy 71f53d3
Fix minor bugs in types.py
Badiboy b96084f
reply_parameters => to_json
Badiboy 0c9bdfb
Fix classes loading in types.py
Badiboy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proposal.
Check if reaction is not list (single reaction) and convert it to list.
or
Check if reaction is not list and raise error with explanation.
Reasonable.
I suppose lot of mistakes by users because of parameter naming: "reaction".