aicompose.updateTone

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

 Method schema is available as of layer 225. Switch »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
tone InputAiComposeTone The tone to edit
display_author 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).
emoji_id 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

Result

AiComposeTone

Only users can use this method

Possible errors

Code Type Description
400 AICOMPOSE_TONE_INVALID The specified tone is invalid.

Related pages

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.