bots.getRequestedWebViewButton #
Fetch the peer request button a bot prepared for a Mini App with bots.requestWebViewButton, invoked when the Mini App emits a web_app_request_chat event, see here » for more info.¶
Layer 223
Method schema is available as of layer 224. Switch » Parameters #
| Name | Type | Description |
|---|---|---|
| bot | InputUser | The bot that owns the Mini App |
| webapp_req_id | string | The Mini App request ID, taken from the web_app_request_chat event's req_id |
Result #
Only users can use this method #
Possible errors #
| Code | Type | Description |
|---|---|---|
| 400 | BOT_ID_INVALID | The specified bot ID is invalid. |
| 400 | WEBAPP_REQ_ID_INVALID | The specified webapp_req_id is invalid. |
Related pages #
Web events #
How telegram apps interact with webpages¶
Mini Apps on Telegram #
Bots can offer users interactive HTML5 web apps to completely replace any website.¶
bots.requestWebViewButton #
Bots may use this method to prepare a peer request button for a Mini App, see here » for more info.¶
Bot buttons #
Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.¶