messages.summarizeText
Summarize the contents of a message with AI, see here » for more info.
Summarize the contents of a message with AI, see [here »](https://core.telegram.org/api/ai.md#summarize-messages) for more info.
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
peer | InputPeer | Ja | The peer where the message is located. |
id | int | Ja | Message ID. |
to_lang | string | Nein | If set, generates the summary in the specified target language (two-letter ISO 639-1 language code) instead of the message's language. |
tone | string | Nein | If set, rephrases the summary using the specified [AI composer tone »](https://core.telegram.org/api/ai.md#ai-compose-tones) (pass the tone identifier) |
Antworten
TextWithEntities
MTProto RPC
- 400 · INPUT_TEXT_TOO_LONG – Der angegebene Text ist zu lang.
- 400 · MSG_ID_INVALID – Ungültige Nachrichten-ID angegeben.
- 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.