Layer 227
BotsGetRequestedWebViewButton
Fetch the peer request button a bot prepared for a Mini App with bots. request Web View Button, invoked when the Mini App emits a web_app_request_chat event, see here for more info.
method
Users
bots.getRequestedWebViewButton#bf25b7f3 bot:InputUser webapp_req_id:string = KeyboardButton;
Parameters
| Name | Type | Description |
|---|---|---|
| Bot | InputUser | The bot that owns the Mini App |
| WebappReqId | string | The Mini App request ID, taken from the web_app_request_chat event's req_id |
Returns
KeyboardButtonGogram Example
// BotsGetRequestedWebViewButton - positional arguments result, err := client.BotsGetRequestedWebViewButton(&tg.InputUserSelf{}, "Hello, World!") if err != nil { // handle error } // result is *tg.KeyboardButton
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. |