get_requested_web_view_button()

async Client.get_requested_web_view_button()

Fetch the peer request button a bot prepared for a Mini App.

Usable by Users Bots
Parameters:
  • bot (int | str) – Unique identifier (int) or username (str) of the target bot.

  • webapp_req_id (str) – The Mini App request ID from the web_app_request_chat event req_id.

Returns:

KeyboardButton – The prepared keyboard button.

Example

button = await app.get_requested_web_view_button("my_bot", "req_123")