Layer 227
method Users
aicompose.updateTone#903bcf59 flags:# tone:InputAiComposeTone display_author:flags.0?Bool emoji_id:flags.1?long title:flags.2?string prompt:flags.3?string = AiComposeTone;

Parameters

Name Type Description
Tone InputAiComposeTone The tone to edit
DisplayAuthor flags .0? Bool If set, changes whether the current user is publicly credited as the author of the tone (ternary value, can be not set, set and true, set and false).
EmojiId flags .1? long If set, the new custom emoji ID of the tone's icon
Title flags .2? string If set, the new human-readable tone name, up to aicompose_tone_title_length_max UTF-8 characters long
Prompt flags .3? string If set, the new 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

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

Possible Errors

Code Type Description
400 AICOMPOSE_TONE_INVALID The specified tone is invalid.