Message.edit_ephemeral_reply_markup()¶
- async Message.edit_ephemeral_reply_markup()[source]¶
Shortcut for method
edit_ephemeral_message_reply_markupwill automatically fill method attributes:chat_id
receiver_id
message_id
Example
from wzgram.types import InlineKeyboardMarkup, InlineKeyboardButton await message.edit_ephemeral_reply_markup( InlineKeyboardMarkup([[InlineKeyboardButton("Done", "done")]]) )
- Parameters:
reply_markup (
InlineKeyboardMarkup, optional) – An InlineKeyboardMarkup object. Pass nothing to remove the current one.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.