Conversation
…e_web_page_preview` keyword-only parameters
This is an important observation. Looking back at the workflow changes, I think we don't need to run many workflows on pushes to branches. I noticed that the doc-test worflow did not run on this PR. this is probably due to:
So in |
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
|
I added basic bool filter. For all of them more arguments could be supported, but I thought we could wait for this if people actually want that. |
Bibo-Joshi
left a comment
There was a problem hiding this comment.
Thanks for the updates! Just a bit more nitpicking.
test_official needs to be adjusted to deal with the temporariy deviation of the can_* being required. IISC the following needs to be updated for that:
python-telegram-bot/tests/test_official/exceptions.py
Lines 153 to 161 in 277031c
Please leave a comment including NEXT.VERSION and "API 7.1" so we have a chance of finding that again when actually making these arguments required :)
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
harshil21
left a comment
There was a problem hiding this comment.
All good to me. We can incorporate https://t.me/bot_api_changes/123 into doc-fixes later.
This is based against the deprecations so we have less merge pain
Checklist
.. versionadded:: NEXT.VERSION,.. versionchanged:: NEXT.VERSIONor.. deprecated:: NEXT.VERSIONto the docstrings for user facing changes (for methods/class descriptions, arguments and attributes)CSI standard <https://standards.mousepawmedia.com/en/stable/csi.html>__AUTHORS.rst(optional)__all__sStability Policy <https://docs.python-telegram-bot.org/stability_policy.html>_ in case of deprecations or changes to documented behaviorIf the PR contains API changes (otherwise, you can ignore this passage)
Checked the Bot API specific sections of the Stability Policy
New classes:
self._id_attrsand corresponding documentation__init__acceptsapi_kwargsas kw-onlyAdded new shortcuts:
In :class:~telegram.Chat& :class:~telegram.Userfor all methods that acceptchat/user_idIn :class:~telegram.Messagefor all methods that acceptchat_idandmessage_idFor new :class:~telegram.Messageshortcuts: Addeddo_quoteargument if methods acceptsreply_to_message_idIn :class:~telegram.CallbackQueryfor all methods that accept eitherchat_idandmessage_idorinline_message_idIf relevant:
telegram.constantsand shortcuts to them as class variablestelegram.Message.effective_attachmentAdded new handlers for new update typesAdd the handlers to the warning loop in the :class:~telegram.ext.ConversationHandlerAdded the new method(s) to_extbot.pyAdded or updatedbot_methods.rstREADME.rstandREADME_RAW.rst(including the badge), as well astelegram.constants.BOT_API_VERSION_INFOAdded 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