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.
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
peer | InputPeer | はい | The peer where the message is located. |
id | int | はい | Message ID. |
to_lang | string | いいえ | 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 | いいえ | 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) |
レスポンス
TextWithEntities
MTProto RPC
- 400 · INPUT_TEXT_TOO_LONG — The specified text is too long.
- 400 · MSG_ID_INVALID — Invalid message ID provided.
- 400 · PEER_ID_INVALID — The provided peer id is invalid.