teleproto - v1.229.0
    Preparing search index...

    Interface TranslateTextParams

    Parameters for TelegramClient.translateText: either messages of a chat, or raw text.

    interface TranslateTextParams {
        entity?: EntityLike;
        ids?: number | number[];
        text?: string | string[];
        toLang: string;
        tone?: string;
    }
    Index
    entity?: EntityLike

    The chat with the messages to translate. Requires ids.

    ids?: number | number[]

    ID(s) of the messages to translate. Requires entity.

    text?: string | string[]

    Raw text(s) to translate instead of messages.

    toLang: string

    Target language: a two-letter ISO 639-1 code (e.g. "en", "ru").

    tone?: string

    AI translation tone (Premium).