edit_ephemeral_message_reply_markup()

Client.edit_ephemeral_message_reply_markup()

Edit only the reply markup 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.

  • reply_markup (InlineKeyboardMarkup, optional) – An inline keyboard. Pass None to remove it.

Returns:

Updates – On success.

Example

await app.edit_ephemeral_message_reply_markup(chat_id, "@mybot", 123, new_markup)