aicompose.UpdateTone#

class pyrogram.raw.functions.aicompose.UpdateTone#

Edit a custom AI composer tone previously created by the current user. Only the fields whose flag is set will be modified.

Usable by Users Bots
Details:
  • Layer: 227

  • ID: 903BCF59

Parameters:
  • tone (InputAiComposeTone) – The tone to edit

  • display_author (bool, optional) – If set, changes whether the current user is publicly credited as the author of the tone (ternary value, can be not set, set and true, set and false).

  • emoji_id (int 64-bit, optional) – If set, the new custom emoji ID of the tone’s icon

  • title (str, optional) – If set, the new human-readable tone name, up to aicompose_tone_title_length_max » UTF-8 characters long

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

Returns:

AiComposeTone