telegram api constructor · layer 229 · #3bd4b7c2
inputReplyToMessage
Reply to a message.
definition
inputReplyToMessage#3bd4b7c2 flags:# reply_to_msg_id:int top_msg_id:flags.0?int reply_to_peer_id:flags.1?InputPeer quote_text:flags.2?string quote_entities:flags.3?Vector<MessageEntity> quote_offset:flags.4?int monoforum_peer_id:flags.5?InputPeer todo_item_id:flags.6?int poll_option:flags.7?bytes = InputReplyTo;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
reply_to_msg_id | int | The message ID to reply to. |
top_msg_id | int | This field must contain the topic ID only when replying to messages in forum topics different from the "General" topic (i.e. reply_to_msg_id is set and reply_to_msg_id != topicID and topicID != 1). If the replied-to message is deleted before the method finishes execution, the value in this field will be used to send the message to the correct topic, instead of the "General" topic. |
reply_to_peer_id | InputPeer | Used to reply to messages sent to another chat (specified here), can only be used for non-protected chats and messages. |
quote_text | string | Used to quote-reply to only a certain section (specified here) of the original message. The maximum UTF-8 length for quotes is specified in the quote_length_max config key. |
quote_entities | Vector<MessageEntity> | Message entities for styled text from the quote_text field. |
quote_offset | int | Offset of the message quote_text within the original message (in UTF-16 code units). |
monoforum_peer_id | InputPeer | Must be set to the ID of the topic when replying to a message within a monoforum topic. |
todo_item_id | int | Can be set to reply to the specified item of a todo list ». |
poll_option | bytes |
type
InputReplyTo · other constructors: inputReplyToStory, inputReplyToMonoForum, inputReplyToEphemeralMessage
history
present in layers 160–229 · constructor id changed 5×
| id | layers |
|---|---|
| #9c5386e4 | 160–165 |
| #073ec805 | 166 |
| #22c0f6d5 | 167–203 |
| #b07038b0 | 204–207 |
| #869fbe10 | 208–223 |
| #3bd4b7c2 | 224–229 |