messages.SummarizeText

class pyrogram.raw.functions.messages.SummarizeText

{schema}

Details:
  • Layer: 224

  • 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
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── idint
├── to_langstring (optional)
└── tonestring (optional)

Example

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