editEphemeralMessageText
Edit an ephemeral message’s text. BOT-ONLY
Parameters
The identifier of the chat which the message belongs to.
The identifier of the user who received the ephemeral message.
messageId: number
The identifier of the message.
text: string
The new text of the message.
businessConnectionId?: string
The identifier of a business connection to perform the action on. Bot-only.
The parse mode to use. If omitted, the default parse mode will be used.
The message’s entities.
The message’s link preview.
The reply markup of the message. Bot-only.
Result
The edited text message.
Syntax
// Required parameters only.
await client.editEphemeralMessageText(chatId, receiverUserId, messageId, text);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.editEphemeralMessageText(chatId, receiverUserId, messageId, text, {
businessConnectionId,
parseMode,
entities,
linkPreview,
replyMarkup,
});