edit_ephemeral_message_media()¶
- Client.edit_ephemeral_message_media()¶
Edit the media of an ephemeral message.
Usable by Users Bots- Parameters:
chat_id (
int|str) – The peer context (chat) the ephemeral message belongs to.receiver_id (
int|str) – The bot user that received the ephemeral message.ephemeral_message_id (
int) – Identifier of the ephemeral message to edit.file_id (
str) – New media, as a file_id of media already on the Telegram servers.reply_markup (
InlineKeyboardMarkup, optional) – An inline keyboard.
- Returns:
Updates– On success.
Example
await app.edit_ephemeral_message_media(chat_id, "@mybot", 123, file_id)