editMessageRichText

Edit a message’s rich text.

Parameters

chatId: ID

The identifier of the chat which the message belongs to.

messageId: number

The identifier of the message.

richText: InputRichText

The new rich text of the message.

businessConnectionId?: string

The identifier of a business connection to perform the action on. Bot-only.

replyMarkup?: ReplyMarkup

The reply markup of the message. Bot-only.

Result

The edited rich text message.

Syntax

// Required parameters only.
await client.editMessageRichText(chatId, messageId, richText);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.editMessageRichText(chatId, messageId, richText, {
    businessConnectionId,
    replyMarkup,
});