aicompose.createTone #

Create a new custom AI composer tone ».

Layer 223

Method schema is available as of layer 225. Switch »

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
display_authorflags.0?trueIf set, the current user will be publicly credited as the author of the tone
emoji_idlongCustom emoji ID of the tone's icon
titlestringHuman-readable tone name, up to aicompose_tone_title_length_max » UTF-8 characters long
promptstringThe 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_TITLE_INVALIDThe specified tone title 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.