Interface MessageReplyToMessage

Contains information about the message or the story a message is replying to. Subtype of MessageReplyTo.

interface MessageReplyToMessage {
    @type: "messageReplyToMessage";
    chat_id: number;
    content: MessageContent;
    message_id: number;
    origin: MessageOrigin;
    origin_send_date: number;
    quote: TextQuote;
}

Properties

@type: "messageReplyToMessage"
chat_id: number

The identifier of the chat to which the message belongs; may be 0 if the replied message is in unknown chat.

Media content of the message if the message was from another chat or topic; may be null for messages from the same chat and messages without media. Can be only one of the following types: messageAnimation, messageAudio, messageContact, messageDice, messageDocument, messageGame, messageGiveaway, messageGiveawayWinners, messageInvoice, messageLocation, messagePaidMedia, messagePhoto, messagePoll, messageSticker, messageStory, messageText (for link preview), messageVenue, messageVideo, messageVideoNote, or messageVoiceNote.

message_id: number

The identifier of the message; may be 0 if the replied message is in unknown chat.

Information about origin of the message if the message was from another chat or topic; may be null for messages from the same chat.

origin_send_date: number

Point in time (Unix timestamp) when the message was sent if the message was from another chat or topic; 0 for messages from the same chat.

quote: TextQuote

Chosen quote from the replied message; may be null if none.