request_web_view_button()

async Client.request_web_view_button()

Prepare a peer request button for a Mini App (for bots).

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

  • button (KeyboardButton) – The button to prepare.

Returns:

RequestedButton – The requested button information.

Example

res = await bot.request_web_view_button(12345, button)