Interface TextCompositionParameters

Describes parameters of text composition with AI.

interface TextCompositionParameters {
    @type: "textCompositionParameters";
    add_emojis?: boolean;
    fix_text?: boolean;
    style_name: string;
    translate_to_language_code: string;
}

Properties

@type: "textCompositionParameters"
add_emojis?: boolean

True, if emoji will be added to the text.

fix_text?: boolean

True, if the text will be fixed in the same way as by fixTextWithAi.

style_name: string

Name of the style of the resulting text; may be empty if none. Handle updateTextCompositionStyles to get the list of supported styles.

translate_to_language_code: string

Language code to which the text will be translated; may be empty if none. See translateText.to_language_code for the list of supported values.