Interface CreateRichMessageWithAi

Creates a new rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests. Request type for Tdjson#createRichMessageWithAi.

interface CreateRichMessageWithAi {
    @type: "createRichMessageWithAi";
    add_emojis?: boolean;
    language_code: string;
    prompt: string;
}

Properties

@type: "createRichMessageWithAi"
add_emojis?: boolean

Pass true to add emoji to the text.

language_code: string

Pass a language code in which the text will be created.

prompt: string

Prompt that will be used to create the message; 0-getOption("text_composition_style_prompt_length_max") characters.