Message.edit_ephemeral_media()¶
- async Message.edit_ephemeral_media()[source]¶
Shortcut for method
edit_ephemeral_message_mediawill automatically fill method attributes:chat_id
receiver_id
message_id
Example
from wzgram.types import InputMediaPhoto await message.edit_ephemeral_media(InputMediaPhoto("new.jpg"))
- Parameters:
media (
InputMedia) – The new media. A local file is uploaded first.reply_markup (
InlineKeyboardMarkup, optional) – An InlineKeyboardMarkup object.welcome (
bool, optional) – Pass True when editing a stored welcome message rather than one that was delivered once.
- Returns:
On success, the edited
Messageis returned.- Raises:
ValueError – In case the message is not an ephemeral one.
RPCError – In case of a Telegram RPC error.