Interface TranslateMessageText

Extracts text or caption of the given message and translates it to the given language. If the current user is a Telegram Premium user, then text formatting is preserved. Request type for Tdjson#translateMessageText.

interface TranslateMessageText {
    @type: "translateMessageText";
    chat_id: number;
    message_id: number;
    to_language_code: string;
}

Properties

@type: "translateMessageText"
chat_id: number

Identifier of the chat to which the message belongs.

message_id: number

Identifier of the message.

to_language_code: string

Language code of the language to which the message is translated. See translateText.to_language_code for the list of supported values.