aicompose.updateTone #

Edit a custom AI composer tone » previously created by the current user. Only the fields whose flag is set will be modified.

Layer 223

Method schema is available as of layer 225. Switch »

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
toneInputAiComposeToneThe tone to edit
display_authorflags.0?BoolIf 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).
emoji_idflags.1?longIf set, the new custom emoji ID of the tone's icon
titleflags.2?stringIf set, the new human-readable tone name, up to aicompose_tone_title_length_max » UTF-8 characters long
promptflags.3?stringIf 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

Result #

AiComposeTone

Only users can use this method #

Possible errors #

CodeTypeDescription
400AICOMPOSE_TONE_INVALIDThe specified tone is invalid.

Custom emojis #

Telegram allows including animated and static custom emojis inside of messages.

Client configuration #

The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.

AI features #

Telegram offers many AI features powered by Cocoon — a decentralized network designed to maximize privacy.