AiComposeTone#
- class pyrogram.raw.types.AiComposeTone#
A custom AI composer tone, used to rephrase messages in a specific style with the AI message composer.
Constructor of
AiComposeTone.- Details:
Layer:
227ID:
CFF63EA9
- Parameters:
id (
int64-bit) – Tone identifieraccess_hash (
int64-bit) – Tone access hashslug (
str) – Unique tone slug, used to share and install the tone via AI compose tone links »title (
str) – Human-readable tone name, up to aicompose_tone_title_length_max » UTF-8 characters longcreator (
bool, optional) – Whether the current user is the creator of this toneemoji_id (
int64-bit, optional) – Custom emoji ID of the tone’s iconprompt (
str, optional) – 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 userinstalls_count (
int32-bit, optional) – Number of users that have installed this toneauthor_id (
int64-bit, optional) – ID of the user that created this tone, if made public by the author.example_english (
AiComposeToneExample, optional) – An example showing how a sample English message is rephrased by this tone; use aicompose.getToneExample to fetch more examples.
- Functions:
This object can be returned by 2 functions.
Create a new custom AI composer tone.
Edit a custom AI composer tone previously created by the current user.