mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2026-06-19 07:35:19 +00:00
Move Parameter ReplyParameters.checklist_task_id to Last Position (#4972)
This commit is contained in:
committed by
GitHub
parent
066ba5bb32
commit
1f5cfc8f9b
@@ -0,0 +1,10 @@
|
||||
breaking = """Move param ``ReplyParameters.checklist_task_id`` to last position.
|
||||
|
||||
.. hint::
|
||||
This change addresses a breaking change accidentally introduced in version 22.4 where the introduction of the new parameter was not done in a backward compatible way.
|
||||
Existing code using keyword arguments is unaffected. Only code using positional arguments (and based on version 22.4) may need updates.
|
||||
"""
|
||||
[[pull_requests]]
|
||||
uid = "4972"
|
||||
author_uids = ["aelkheir"]
|
||||
closes_threads = []
|
||||
@@ -377,6 +377,12 @@ class ReplyParameters(TelegramObject):
|
||||
|
||||
.. versionadded:: 20.8
|
||||
|
||||
.. versionchanged:: NEXT.VERSION
|
||||
The :paramref:`checklist_task_id` parameter has been moved to the last position to
|
||||
maintain backward compatibility with versions prior to 22.4.
|
||||
This resolves a breaking change accidentally introduced in version 22.4. See the changelog
|
||||
for version NEXT.VERSION for more information.
|
||||
|
||||
Args:
|
||||
message_id (:obj:`int`): Identifier of the message that will be replied to in the current
|
||||
chat, or in the chat :paramref:`chat_id` if it is specified.
|
||||
@@ -449,11 +455,11 @@ class ReplyParameters(TelegramObject):
|
||||
message_id: int,
|
||||
chat_id: Optional[Union[int, str]] = None,
|
||||
allow_sending_without_reply: ODVInput[bool] = DEFAULT_NONE,
|
||||
checklist_task_id: Optional[int] = None,
|
||||
quote: Optional[str] = None,
|
||||
quote_parse_mode: ODVInput[str] = DEFAULT_NONE,
|
||||
quote_entities: Optional[Sequence[MessageEntity]] = None,
|
||||
quote_position: Optional[int] = None,
|
||||
checklist_task_id: Optional[int] = None,
|
||||
*,
|
||||
api_kwargs: Optional[JSONDict] = None,
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user