API 7.4 - `refund_star_payment` by harshil21 · Pull Request #4280 · python-telegram-bot/python-telegram-bot
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 6k
Conversation
Checklist
- Added
.. versionadded:: NEXT.VERSION,.. versionchanged:: NEXT.VERSIONor.. deprecated:: NEXT.VERSIONto the docstrings for user facing changes (for methods/class descriptions, arguments and attributes) - Created new or adapted existing unit tests
- Documented code changes according to the
CSI standard <https://standards.mousepawmedia.com/en/stable/csi.html>__ - Added myself alphabetically to
AUTHORS.rst(optional) - Added new classes & modules to the docs and all suitable
__all__s - Checked the
Stability Policy <https://docs.python-telegram-bot.org/stability_policy.html>_ in case of deprecations or changes to documented behavior
If the PR contains API changes (otherwise, you can ignore this passage)
-
Checked the Bot API specific sections of the Stability Policy
-
New classes:
- Added
self._id_attrsand corresponding documentation -
__init__acceptsapi_kwargsas kw-only
- Added
-
Added new shortcuts:
- In :class:
~telegram.Chat& :class:~telegram.Userfor all methods that acceptchat/user_id - In :class:
~telegram.Messagefor all methods that acceptchat_idandmessage_id - For new :class:
~telegram.Messageshortcuts: Addeddo_quoteargument if methods acceptsreply_to_message_id - In :class:
~telegram.CallbackQueryfor all methods that accept eitherchat_idandmessage_idorinline_message_id
- In :class:
-
If relevant:
- Added new constants at :mod:
telegram.constantsand shortcuts to them as class variables - Link new and existing constants in docstrings instead of hard-coded numbers and strings
- Add new message types to :attr:
telegram.Message.effective_attachment - Added new handlers for new update types
- Add the handlers to the warning loop in the :class:
~telegram.ext.ConversationHandler - Added new filters for new message (sub)types
- Added or updated documentation for the changed class(es) and/or method(s)
- Added the new method(s) to
_extbot.py - Added or updated
bot_methods.rst - Updated the Bot API version number in all places:
README.rstandREADME_RAW.rst(including the badge), as well astelegram.constants.BOT_API_VERSION_INFO - Added logic for arbitrary callback data in :class:
telegram.ext.ExtBotfor new methods that either accept areply_markupin some form or have a return type that is/contains :class:~telegram.Message
- Added new constants at :mod:
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good so far, but we should add a corresponding shortcut to User
Bibo-Joshi added a commit that referenced this pull request
Jun 3, 2024This file contains hidden or 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