aicompose.saveTone #

Install or uninstall an AI composer tone », adding it to or removing it from the list of saved tones of the current user.

Non-Premium users may install up to aicompose_tone_saved_limit_default » tones, Premium users up to aicompose_tone_saved_limit_premium » tones.

Layer 223

Method schema is available as of layer 225. Switch »

Parameters #

NameTypeDescription
toneInputAiComposeToneThe tone to save or unsave
unsaveBoolIf false, installs (saves) the tone; if true, uninstalls (unsaves) it

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400AICOMPOSE_TONE_INVALIDThe specified tone is invalid.

AI features #

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

Telegram Premium #

Telegram Premium is an optional subscription service that unlocks additional exclusive client-side and API-side features, while helping support the development of the app.

Client configuration #

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