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 #

NameTypeDescription
user_idInputUserThe user that will use the prepared button in the Mini App
buttonKeyboardButtonThe button to prepare, an inputKeyboardButtonRequestPeer of any RequestPeerType

Result #

bots.RequestedButton

Only bots can use this method #

Possible errors #

CodeTypeDescription
400BUTTON_INVALIDThe specified button is invalid.
400USER_BOT_REQUIREDThis method can only be called by a bot.
400USER_ID_INVALIDThe provided user ID is invalid.

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.