bots.requestWebViewButton #
Bots may use this method to prepare a peer request button for a Mini App, see here » for more info.¶
Layer 223
Method schema is available as of layer 224. Switch » Parameters #
| Name | Type | Description |
|---|---|---|
| user_id | InputUser | The user that will use the prepared button in the Mini App |
| button | KeyboardButton | The button to prepare, an inputKeyboardButtonRequestPeer of any RequestPeerType |
Result #
Only bots can use this method #
Possible errors #
| Code | Type | Description |
|---|---|---|
| 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. |
Related pages #
inputKeyboardButtonRequestPeer #
Prompts the user to select and share one or more peers with the bot using messages.sendBotRequestedPeer.¶
Use this constructor to send a keyboardButtonRequestPeer button in a reply keyboard in a private chat.¶
See peer requests for the full flow.¶
RequestPeerType #
Filtering criteria to use for the peer selection list shown to the user.¶
Mini Apps on Telegram #
Bots can offer users interactive HTML5 web apps to completely replace any website.¶
Bot buttons #
Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.¶