Layer 227
method Users
aicompose.createTone#4aa83913 flags:# display_author:flags.0?true emoji_id:long title:string prompt:string = AiComposeTone;

Parameters

Name Type Description
DisplayAuthor flags .0? true If set, the current user will be publicly credited as the author of the tone
EmojiId long Custom emoji ID of the tone's icon
Title string Human-readable tone name, up to aicompose_tone_title_length_max UTF-8 characters long
Prompt string The prompt that describes how the AI should rephrase messages using this tone, up to aicompose_tone_prompt_length_max UTF-8 characters long

Returns

AiComposeTone

Gogram Example

// AicomposeCreateTone - positional arguments
result, err := client.AicomposeCreateTone(nil, int64(1234567890), "Hello, World!", "Hello, World!")
if err != nil {
    // handle error
}
// result is *tg.AiComposeTone

Possible Errors

Code Type Description
400 AICOMPOSE_TONE_TITLE_INVALID The specified tone title is invalid.