bots.getRequestedWebViewButton
获取为带有bots.requestWebViewButton的迷你应用程序准备的机器人的对等请求按钮,当迷你应用程序发出`web_app_request_chat`事件时调用,请参阅此处»了解更多信息。
获取为[迷你应用程序](https://core.telegram.org/api/bots/webapps.md)和[bots.requestWebViewButton](https://core.telegram.org/method/bots.requestWebViewButton.md)]准备的对等请求按钮,当迷你应用程序发出[`web_app_request_chat`](https://core.telegram.org/api/web-events.md#web-app-request-chat)事件时调用,请参阅[此处»](https://core.telegram.org/api/bots/buttons.md#requesting-peers-via-mini-apps)了解更多信息。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
bot | InputUser | 是的 | 拥有迷你应用程序的机器人 |
webapp_req_id | string | 是的 | 小程序请求ID,取自[`web_app_request_chat`](https://core.telegram.org/api/web-events.md#web-app-request-chat)事件的`req_id` |
回应
KeyboardButton
MTProto RPC
- 400 · BOT_ID_INVALID — 指定的机器人ID无效。
- 400 · WEBAPP_REQ_ID_INVALID — 指定的webapp_req_id 无效。