Interface GetMessageEmbeddingCode

Returns an HTML code for embedding the message. Available only if messageProperties.can_get_embedding_code. Request type for Tdjson#getMessageEmbeddingCode.

interface GetMessageEmbeddingCode {
    @type: "getMessageEmbeddingCode";
    chat_id: number;
    for_album?: boolean;
    message_id: number;
}

Properties

@type: "getMessageEmbeddingCode"
chat_id: number

Identifier of the chat to which the message belongs.

for_album?: boolean

Pass true to return an HTML code for embedding of the whole media album.

message_id: number

Identifier of the message.