Copy link
Copy Markdown
Contributor
Checklist for PRs
- Added
.. versionadded:: version,.. versionchanged:: versionor.. deprecated:: versionto the docstrings for user facing changes (for methods/class descriptions, arguments and attributes) - Created new or adapted existing unit tests
- Added myself alphabetically to
AUTHORS.rst(optional)
If the PR contains API changes (otherwise, you can delete this passage)
-
New classes:
- Added
self._id_attrsand corresponding documentation -
__init__accepts**_kwargs
- Added
-
Added new shortcuts:
- In
Chat&Userfor all methods that acceptchat/user_id - In
Messagefor all methods that acceptchat_idandmessage_id - For new
Messageshortcuts: Addedquoteargument if methods acceptsreply_to_message_id - In
CallbackQueryfor all methods that accept eitherchat_idandmessage_idorinline_message_id
- In
-
If relevant:
- Added new constants at
telegram.constantsand shortcuts to them as class variables - Added new handlers for new update types
- Added new filters for new message (sub)types
- Added or updated documentation for the changed class(es) and/or method(s)
- Updated the Bot API version number in all places:
README.rstandREADME_RAW.rst(including the badge), as well astelegram.constants.BOT_API_VERSION - Added logic for arbitrary callback data in
tg.ext.Botfor new methods that either accept areply_markupin some form or have a return type that is/containstelegram.Message
- Added new constants at
closes #2580.
Copy link
Copy Markdown
Member
Hi. Sorry for getting back on this only now.
I made some more adjustments and think it should work out fine now. Would you mind testing for your use cases with the new changes?
Copy link
Copy Markdown
Contributor Author
No problem. I tested it, and it works, though I don't understand the changes at all ๐
Copy link
Copy Markdown
Member
๐
They basicall try to make sure that the dispatcher uses the same class for the callbackcontext as the one you're calling right now. This is a bit more relevant as v13.6 introduced the possibility to use a custom subclass of CallbackContext.