summarize_text()

async Client.summarize_text()

Summarize text content using AI.

Usable by Users Bots
Parameters:
  • peer (Union[int, str], *optional*) – Chat from which to get the source message

  • id (int, *optional*) – Message ID to summarize

  • to_lang (str, *optional*) – Target language for the summary

  • tone (str, *optional*) – AI summary tone preset

Returns:

FormattedText

Example

await app.summarize_text(...)