Message.edit_media()

Message.edit_media()

Shortcut for method edit_message_media will automatically fill method attributes:

  • chat_id

  • message_id

  • business_connection_id

Example

await message.edit_media(media)
Parameters:
  • media (InputMedia) – One of the InputMedia objects describing an animation, audio, document, photo or video.

  • reply_markup (InlineKeyboardMarkup, optional) – An InlineKeyboardMarkup object.

Returns:

On success, the edited Message is returned.

Raises:

RPCError – In case of a Telegram RPC error.