Message.edit_reply_markup()

Message.edit_reply_markup()

Bound method edit_reply_markup of Message.

Use as a shortcut for:

await client.edit_message_reply_markup(
    chat_id=message.chat.id,
    message_id=message.id,
    reply_markup=inline_reply_markup
)

Example

await message.edit_reply_markup(inline_reply_markup)
Parameters:
  • reply_markup (InlineKeyboardMarkup) – An InlineKeyboardMarkup object.

  • business_connection_id (str, optional) – Unique identifier of the business connection. for business bots only.

Returns:

On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.

Raises:

RPCError – In case of a Telegram RPC error.