Interface MessageLinkInfo

Contains information about a link to a message or a forum topic in a chat.

interface MessageLinkInfo {
    @type: "messageLinkInfo";
    chat_id: number;
    for_album?: boolean;
    is_public?: boolean;
    media_timestamp: number;
    message: Message;
    message_thread_id: number;
}

Properties

@type: "messageLinkInfo"
chat_id: number

If found, identifier of the chat to which the link points, 0 otherwise.

for_album?: boolean

True, if the whole media album to which the message belongs is linked.

is_public?: boolean

True, if the link is a public link for a message or a forum topic in a chat.

media_timestamp: number

Timestamp from which the video/audio/video note/voice note/story playing must start, in seconds; 0 if not specified. The media can be in the message content or in its link preview.

message: Message

If found, the linked message; may be null.

message_thread_id: number

If found, identifier of the message thread in which to open the message, or a forum topic to open if the message is missing.