bots.requestWebViewButton
Bots may use this method to prepare a peer request button for a Mini App, see here » for more info.
Bots may use this method to prepare a peer request button for a [Mini App](https://core.telegram.org/api/bots/webapps.md), see [here »](https://core.telegram.org/api/bots/buttons.md#requesting-peers-via-mini-apps) for more info.
| Name | Type | Required | Description |
|---|---|---|---|
user_id | InputUser | Yes | The user that will use the prepared button in the Mini App |
button | KeyboardButton | Yes | The button to prepare, an [inputKeyboardButtonRequestPeer](https://core.telegram.org/constructor/inputKeyboardButtonRequestPeer.md) of any [RequestPeerType](https://core.telegram.org/type/RequestPeerType.md) |
Responses
bots.RequestedButton
MTProto RPC
- 400 · BUTTON_INVALID — The specified button is invalid.
- 400 · USER_BOT_REQUIRED — This method can only be called by a bot.
- 400 · USER_ID_INVALID — The provided user ID is invalid.