messages.SummarizeText

class pyrogram.raw.functions.messages.SummarizeText

{schema}

Details:
  • Layer: 227

  • ID: ABBBD346

Parameters:
  • peer (InputPeer)

  • id (int 32-bit)

  • to_lang (str, optional)

  • tone (str, optional) – N/A

Returns:

TextWithEntities

TL Schema

messages.summarizeText#abbbd346
flags:#
peer:InputPeer
id:int
to_lang:flags.0?string
tone:flags.2?string

= TextWithEntities

Parameter Tree

SummarizeText
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── id → int
├── to_lang → string (optional)
└── tone → string (optional)

Example

await app.invoke(
    SummarizeText(
        peer=await app.resolve_peer(chat_id),
        id=0,
        to_lang="text",
        tone="text",
    )
)