messages.SummarizeText

class pyrogram.raw.functions.messages.SummarizeText[source]

Summarize the contents of a message with AI, see here » for more info.

Usable by Users Bots
Details:
  • Layer: 229

  • ID: ABBBD346

Parameters:
  • peer (InputPeer) – The peer where the message is located.

  • id (int 32-bit) – Message ID.

  • to_lang (str, optional) – If set, generates the summary in the specified target language (two-letter ISO 639-1 language code) instead of the message’s language.

  • tone (str, optional) – If set, rephrases the summary using the specified AI composer tone » (pass the tone identifier)

Returns:

TextWithEntities