Bots may use this method to prepare a peer request button for a Mini App, see here » for more info.
Method schema is available as of layer 224. Switch »
| 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 |
| 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. |
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.
Filtering criteria to use for the peer selection list shown to the user.
Bots can offer users interactive HTML5 web apps to completely replace any website.
Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.