editMessageMedia method

Future<Message> editMessageMedia(
  1. ChatID? chatId,
  2. int? messageId,
  3. InputMedia media, {
  4. ReplyMarkup? replyMarkup,
})
inherited

Use this method to edit animation, audio, document, photo, or video messages.

If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise.

When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL.

On success, the edited Message is returned.

Implementation

Future<Message> editMessageMedia(
  ChatID? chatId,
  int? messageId,
  InputMedia media, {
  ReplyMarkup? replyMarkup,
}) {
  return _client.apiCall(_token, 'editMessageMedia', {
    'chat_id': chatId,
    'message_id': messageId,
    'media': media,
    'reply_markup': replyMarkup,
  });
}