-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Botapi2.3 #471
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
Conversation
- Changed behaviour: messages with high scores will be update with new high scores by default. (documentation fix) - Use (new) disable_edit_message in setGameScore to disable the above new behaviour. - The edit_message parameter from setGameScore is no longer in use. For backward compatibility, it will be taken into account for a while, unless disable_edit_message is passed explicitly. refs #468
Telegram servers changed their behaviour - now they truncate a long caption instead of returning an error.
| ``chat_data`` will be passed to the callback function. It will be a ``dict`` you | ||
| can use to keep any data related to the chat that the update was sent in. | ||
| For each update in the same chat, it will be the same ``dict``. Default is ``False``. | ||
| message_updates (Optional[bool]): Should "normal" message updates be handled? Default is |
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.
I wonder if we could use a filter for this instead? Now that it is actually possible to use more than one filter. Or is it more clear/explicit and nice using this method?
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.
I think this is okay, it's also the same way as we implemented edited messages
jsmnbom
left a comment
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.
Overall looks good! ^^
The deprecation of ReplyKeyboardHide is a bit ugly, but it works (and I can't think of a better way :P)
Closes #468