summarizeText
Summarize a message’s text. USER-ONLY
Parameters
The identifier of a chat.
messageId: number
The identifier of a message.
languageCode?: string
A language code. If specified, the message will be summarized into that language.
Result
Syntax
// Required parameters only.
await client.summarizeText(chatId, messageId);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.summarizeText(chatId, messageId, { languageCode });