edit_inline_reply_markup()

Client.edit_inline_reply_markup()

Edit only the reply markup of inline messages sent via the bot (for inline bots).

Parameters
  • inline_message_id (str) – Identifier of the inline message.

  • reply_markup (InlineKeyboardMarkup, optional) – An InlineKeyboardMarkup object.

Returns

bool – On success, True is returned.

Example

from pyrogram import InlineKeyboardMarkup, InlineKeyboardButton

# Bots only
app.edit_inline_reply_markup(
    inline_message_id,
    InlineKeyboardMarkup([[
        InlineKeyboardButton("New button", callback_data="new_data")]]))