teleproto - v1.234.0
    Preparing search index...

    Interface MessagesTranslateTextParams

    interface MessagesTranslateTextParams {
        id?: number[];
        peer?: TypeInputPeerIn;
        text?: TypeTextWithEntitiesIn[];
        toLang: string;
        tone?: string;
    }
    Index
    id?: number[]

    A list of message IDs to translate

    If the text is a chat message, the peer ID

    A list of styled messages to translate

    toLang: string

    Two-letter ISO 639-1 language code of the language to which the message is translated

    tone?: string

    If set, rephrases the translation using the specified AI composer tone » (pass the tone identifier)