Layer 227
AiComposeToneObj
A custom AI composer tone, used to rephrase messages in a specific style with the AI message composer.
constructor
aiComposeTone#cff63ea9 flags:# creator:flags.0?true id:long access_hash:long slug:string title:string emoji_id:flags.1?long prompt:flags.4?string installs_count:flags.2?int author_id:flags.3?long example_english:flags.5?AiComposeToneExample = AiComposeTone;
Parameters
| Name | Type | Description |
|---|---|---|
| Creator | flags .0? true | Whether the current user is the creator of this tone |
| Id | long | Tone identifier |
| AccessHash | long | Tone access hash |
| Slug | string | Unique tone slug, used to share and install the tone via AI compose tone links |
| Title | string | Human-readable tone name, up to aicompose_tone_title_length_max UTF-8 characters long |
| EmojiId | flags .1? long | Custom emoji ID of the tone's icon |
| Prompt | flags .4? 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; only present for tones created by the current user |
| InstallsCount | flags .2? int | Number of users that have installed this tone |
| AuthorId | flags .3? long | ID of the user that created this tone, if made public by the author. |
| ExampleEnglish | flags .5? AiComposeToneExample | An example showing how a sample English message is rephrased by this tone; use aicompose. get Tone Example to fetch more examples. |
Returns
AiComposeToneGogram Example
// Creating AiComposeToneObj constructor obj := &tg.AiComposeToneObj{ Creator: nil, Id: int64(1234567890), AccessHash: int64(1234567890), Slug: "Hello, World!", Title: "Hello, World!", EmojiId: nil, // ... more required fields }