Describes reply parameters for the message that is being sent. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`message_id` is equal. .. versionadded:: 20.8 .. versionchanged:: 22.5 The :paramre
| 383 | |
| 384 | |
| 385 | class ReplyParameters(TelegramObject): |
| 386 | """ |
| 387 | Describes reply parameters for the message that is being sent. |
| 388 | |
| 389 | Objects of this class are comparable in terms of equality. Two objects of this class are |
| 390 | considered equal, if their :attr:`message_id` is equal. |
| 391 | |
| 392 | .. versionadded:: 20.8 |
| 393 | |
| 394 | .. versionchanged:: 22.5 |
| 395 | The :paramref:`checklist_task_id` parameter has been moved to the last position to |
| 396 | maintain backward compatibility with versions prior to 22.4. |
| 397 | This resolves a breaking change accidentally introduced in version 22.4. See the changelog |
| 398 | for version 22.5 for more information. |
| 399 | |
| 400 | Args: |
| 401 | message_id (:obj:`int`): Identifier of the message that will be replied to in the current |
| 402 | chat, or in the chat :paramref:`chat_id` if it is specified. |
| 403 | chat_id (:obj:`int` | :obj:`str`, optional): If the message to be replied to is from a |
| 404 | different chat, |chat_id_channel| |
| 405 | Not supported for messages sent on behalf of a business account and messages from |
| 406 | channel direct messages chats. |
| 407 | allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply| Can be |
| 408 | used only for replies in the same chat and forum topic. |
| 409 | quote (:obj:`str`, optional): Quoted part of the message to be replied to; 0-1024 |
| 410 | characters after entities parsing. The quote must be an exact substring of the message |
| 411 | to be replied to, including bold, italic, underline, strikethrough, spoiler, |
| 412 | custom_emoji, and date_time entities. The message will fail to send if the quote isn't |
| 413 | found in the original message. |
| 414 | quote_parse_mode (:obj:`str`, optional): Mode for parsing entities in the quote. See |
| 415 | :wiki:`formatting options <Code-snippets#message-formatting-bold-italic-code->` for |
| 416 | more details. |
| 417 | quote_entities (Sequence[:class:`telegram.MessageEntity`], optional): A JSON-serialized |
| 418 | list |
| 419 | of special entities that appear in the quote. It can be specified instead of |
| 420 | :paramref:`quote_parse_mode`. |
| 421 | quote_position (:obj:`int`, optional): Position of the quote in the original message in |
| 422 | UTF-16 code units. |
| 423 | checklist_task_id (:obj:`int`, optional): Identifier of the specific checklist task to be |
| 424 | replied to. |
| 425 | |
| 426 | .. versionadded:: 22.4 |
| 427 | poll_option_id (:obj:`str`, optional): Persistent |
| 428 | identifier of the specific poll option to be replied to. |
| 429 | |
| 430 | .. versionadded:: 22.8 |
| 431 | |
| 432 | Attributes: |
| 433 | message_id (:obj:`int`): Identifier of the message that will be replied to in the current |
| 434 | chat, or in the chat :paramref:`chat_id` if it is specified. |
| 435 | chat_id (:obj:`int` | :obj:`str`): Optional. If the message to be replied to is from a |
| 436 | different chat, |chat_id_channel| |
| 437 | Not supported for messages sent on behalf of a business account and messages from |
| 438 | channel direct messages chats. |
| 439 | allow_sending_without_reply (:obj:`bool`): Optional. |allow_sending_without_reply| Can be |
| 440 | used only for replies in the same chat and forum topic. |
| 441 | quote (:obj:`str`): Optional. Quoted part of the message to be replied to; 0-1024 |
| 442 | characters after entities parsing. The quote must be an exact substring of the message |
no outgoing calls
searching dependent graphs…