edit_ephemeral_message_reply_markup()¶
- async Client.edit_ephemeral_message_reply_markup()¶
Edit only the inline keyboard of an ephemeral message.
Usable by Users Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target chat.receiver_id (
int|str) – Unique identifier (int) or username (str) of the user the ephemeral message was sent to.message_id (
int) – Identifier of the ephemeral message to edit.reply_markup (
InlineKeyboardMarkup, optional) – An inline keyboard. Pass nothing to leave the current one unchanged: the RPC omits the field, which the server reads as “no change”.welcome (
bool, optional) – Pass True when editing a stored welcome message rather than one that was delivered once.
- Returns:
Message– On success, the edited message is returned.
Example
from wzgram.types import InlineKeyboardMarkup, InlineKeyboardButton await app.edit_ephemeral_message_reply_markup( chat_id, receiver_id, message_id, InlineKeyboardMarkup([[InlineKeyboardButton("Done", "done")]]) )