aiComposeTone #

A custom AI composer tone », used to rephrase messages in a specific style with the AI message composer.

Layer 223

Constructor schema is available as of layer 225. Switch »

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
creatorflags.0?trueWhether the current user is the creator of this tone
idlongTone identifier
access_hashlongTone access hash
slugstringUnique tone slug, used to share and install the tone via AI compose tone links »
titlestringHuman-readable tone name, up to aicompose_tone_title_length_max » UTF-8 characters long
emoji_idflags.1?longCustom emoji ID of the tone's icon
promptflags.4?stringThe prompt that describes how the AI should rephrase messages using this tone, up to aicompose_tone_prompt_length_max » UTF-8 characters long; only present for tones created by the current user
installs_countflags.2?intNumber of users that have installed this tone
author_idflags.3?longID of the user that created this tone, if made public by the author.
example_englishflags.5?AiComposeToneExampleAn example showing how a sample English message is rephrased by this tone; use aicompose.getToneExample to fetch more examples.

Type #

AiComposeTone

Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.

Client configuration #

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

Custom emojis #

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

aicompose.getToneExample #

Fetch an example showing how an AI composer tone » rephrases a sample message, used as a preview in the tone picker.

AI features #

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