Methods

editEphemeralMessageMedia

Edit an ephemeral message’s media. BOT-ONLY

Parameters

chatId: ID

The identifier of the chat which the message belongs to.

receiverUserId: ID

The identifier of the user who received the ephemeral message.

messageId: number

The identifier of the message.

media: InputMedia

The message’s new media.

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 message.

Syntax

// Required parameters only.
await client.editEphemeralMessageMedia(chatId, receiverUserId, messageId, media);

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