aicompose.CreateTone#

class pyrogram.raw.functions.aicompose.CreateTone#

Create a new custom AI composer tone.

Usable by Users Bots
Details:
  • Layer: 227

  • ID: 4AA83913

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

  • title (str) – Human-readable tone name, up to aicompose_tone_title_length_max » UTF-8 characters long

  • prompt (str) – The prompt that describes how the AI should rephrase messages using this tone, up to aicompose_tone_prompt_length_max » UTF-8 characters long

  • display_author (bool, optional) – If set, the current user will be publicly credited as the author of the tone

Returns:

AiComposeTone