MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / ReplyParameters

Class ReplyParameters

telebot/types.py:9960–10048  ·  view source on GitHub ↗

Describes reply parameters for the message that is being sent. Telegram documentation: https://core.telegram.org/bots/api#replyparameters :param message_id: Identifier of the message that will be replied to in the current chat, or in the chat chat_id if it is specified :type messa

Source from the content-addressed store, hash-verified

9958
9959
9960class ReplyParameters(JsonDeserializable, Dictionaryable, JsonSerializable):
9961 """
9962 Describes reply parameters for the message that is being sent.
9963
9964 Telegram documentation: https://core.telegram.org/bots/api#replyparameters
9965
9966 :param message_id: Identifier of the message that will be replied to in the current chat, or in the chat chat_id if it is specified
9967 :type message_id: :obj:`int`
9968
9969 :param chat_id: Optional. If the message to be replied to is from a different chat, unique identifier for the chat or username
9970 of the channel (in the format @channelusername)
9971 :type chat_id: :obj:`int` or :obj:`str`
9972
9973 :param allow_sending_without_reply: Optional. Pass True if the message should be sent even if the specified message to be replied to is not found;
9974 can be used only for replies in the same chat and forum topic.
9975 :type allow_sending_without_reply: :obj:`bool`
9976
9977 :param quote: Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing.
9978 The quote must be an exact substring of the message to be replied to, including bold, italic, underline,
9979 strikethrough, spoiler, custom_emoji, and date_time entities. The message will fail to send if the quote
9980 isn't found in the original message.
9981 :type quote: :obj:`str`
9982
9983 :param quote_parse_mode: Optional. Mode for parsing entities in the quote. See formatting options for more details.
9984 :type quote_parse_mode: :obj:`str`
9985
9986 :param quote_entities: Optional. A JSON-serialized list of special entities that appear in the quote. It can be specified instead of quote_parse_mode.
9987 :type quote_entities: :obj:`list` of :class:`MessageEntity`
9988
9989 :param quote_position: Optional. Position of the quote in the original message in UTF-16 code units
9990 :type quote_position: :obj:`int`
9991
9992 :param checklist_task_id: Optional. Optional. Identifier of the specific checklist task to be replied to
9993 :type checklist_task_id: :obj:`int`
9994
9995 :param poll_option_id: Optional. Persistent identifier of the specific poll option to be replied to
9996 :type poll_option_id: :obj:`str`
9997
9998 :return: Instance of the class
9999 :rtype: :class:`ReplyParameters`
10000 """
10001
10002 @classmethod
10003 def de_json(cls, json_string):
10004 if json_string is None: return None
10005 obj = cls.check_json(json_string)
10006 if 'quote_entities' in obj:
10007 obj['quote_entities'] = [MessageEntity.de_json(entity) for entity in obj['quote_entities']]
10008 return cls(**obj)
10009
10010 def __init__(self, message_id: int, chat_id: Optional[Union[int, str]] = None,
10011 allow_sending_without_reply: Optional[bool] = None, quote: Optional[str] = None,
10012 quote_parse_mode: Optional[str] = None, quote_entities: Optional[List[MessageEntity]] = None,
10013 quote_position: Optional[int] = None, checklist_task_id: Optional[int] = None,
10014 poll_option_id: Optional[str] = None, **kwargs) -> None:
10015 self.message_id: int = message_id
10016 self.chat_id: Optional[Union[int, str]] = chat_id
10017 self.allow_sending_without_reply: Optional[bool] = allow_sending_without_reply

Callers 14

start_exFunction · 0.90
any_stateFunction · 0.90
name_getFunction · 0.90
ask_colorFunction · 0.90
ask_hobbyFunction · 0.90
finishFunction · 0.90
age_incorrectFunction · 0.90
start_exFunction · 0.90
any_stateFunction · 0.90
name_getFunction · 0.90
ask_colorFunction · 0.90
ask_hobbyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…