messages.SummarizeText

class pyrogram.raw.functions.messages.SummarizeText

{schema}

Details:
  • Layer: 223

  • ID: 9D4104E2

Parameters:
  • peer (InputPeer)

  • id (int 32-bit)

  • to_lang (str, optional)

Returns:

TextWithEntities

TL Schema

messages.summarizeText#9d4104e2
flags:#
peer:InputPeer
id:int
to_lang:flags.0?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)

Example

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