messages.ComposeMessageWithAI#

class pyrogram.raw.functions.messages.ComposeMessageWithAI#

Invokes telegram’s AI Editor that can translate, transform, fixup and/or emojify your message in a number of different ways, privately powered by Cocoon, see here for more info! All of the modes specified below can be combined.

Details:
  • Layer: 225

  • ID: DAECC589

Parameters:
  • text (TextWithEntities) – The message

  • proofread (bool, optional) – If set, proofreads and fixes mistakes in the message

  • emojify (bool, optional) – If set, adds emojis to the message

  • translate_to_lang (str, optional) – If set, translates the message to the specified language

  • tone (InputAiComposeTone, optional)

Returns:

messages.ComposedMessageWithAI