editMessageText
Edit a message’s text.
PARAMETERS
The identifier of the chat that contains the message.
messageId: number
The message’s identifier.
text: string
The new text of the message.
The parse mode to use. If not provided, the default parse mode will be used.
The message’s entities.
The message’s link preview.
The reply markup of the message. Bot-only.
SYNTAX
// Required parameters only.
await client.editMessageText(chatId, messageId, text);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.editMessageText(chatId, messageId, text, {
parseMode,
entities,
linkPreview,
replyMarkup,
});