editMessageMedia

Edit a message’s media.

PARAMETERS
chatId: ID

The identifier of the chat that contains the message.

messageId: number

The message’s identifier.

media: InputMedia

The new media of the message.

replyMarkup?: ReplyMarkup

The reply markup of the message. Bot-only.

RESULT

The edited message.

SYNTAX
// Required parameters only.
await client.editMessageMedia(chatId, messageId, media);

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