aicompose.createTone #
Create a new custom AI composer tone ».¶
Layer 223
Method schema is available as of layer 225. Switch » Parameters #
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| display_author | flags.0?true | If set, the current user will be publicly credited as the author of the tone |
| emoji_id | long | Custom emoji ID of the tone's icon |
| title | string | Human-readable tone name, up to aicompose_tone_title_length_max » UTF-8 characters long |
| prompt | string | The prompt that describes how the AI should rephrase messages using this tone, up to aicompose_tone_prompt_length_max » UTF-8 characters long |
Result #
Only users can use this method #
Possible errors #
| Code | Type | Description |
|---|---|---|
| 400 | AICOMPOSE_TONE_TITLE_INVALID | The specified tone title 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.¶