edit_inline_reply_markup()¶
- Client.edit_inline_reply_markup()¶
Edit only the reply markup of inline messages sent via the bot (for inline bots).
Usable by Users 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.types import InlineKeyboardMarkup, InlineKeyboardButton # Bots only await app.edit_inline_reply_markup( inline_message_id, InlineKeyboardMarkup([[ InlineKeyboardButton("New button", callback_data="new_data")]]))