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: 227

  • ID: CFF63EA9

Parameters:
  • id (int 64-bit) – Tone identifier

  • access_hash (int 64-bit) – Tone access hash

  • slug (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 long

  • creator (bool, optional) – Whether the current user is the creator of this tone

  • emoji_id (int 64-bit, optional) – Custom emoji ID of the tone’s icon

  • prompt (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 user

  • installs_count (int 32-bit, optional) – Number of users that have installed this tone

  • author_id (int 64-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.

aicompose.CreateTone

Create a new custom AI composer tone.

aicompose.UpdateTone

Edit a custom AI composer tone previously created by the current user.