messages.SummarizeText#
- class pyrogram.raw.functions.messages.SummarizeText#
Summarize the contents of a message with AI, see here for more info. Clients should use message.summary_from_language as a hint for showing a summarization button; its absence does not forbid invoking this method.
Usable by ✅ Users ❌ Bots- Details:
Layer:
227ID:
ABBBD346
- Parameters:
peer (
InputPeer) – The peer where the message is located.id (
int32-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: