bots.requestWebViewButton
机器人可以使用此方法为迷你应用程序准备对等请求按钮,请参阅此处»了解更多信息。
机器人可以使用此方法为[迷你应用程序](https://core.telegram.org/api/bots/webapps.md)准备对等请求按钮,请参阅[此处»](https://core.telegram.org/api/bots/buttons.md#requesting-peers-via-mini-apps)了解更多信息。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
user_id | InputUser | 是的 | 将使用小程序中准备好的按钮的用户 |
button | KeyboardButton | 是的 | 要准备的按钮,任何 [RequestPeerType](https://core.telegram.org/type/RequestPeerType.md) 的 [inputKeyboardButtonRequestPeer](https://core.telegram.org/constructor/inputKeyboardButtonRequestPeer.md)] |
回应
bots.RequestedButton
MTProto RPC
- 400 · BUTTON_INVALID — 指定按钮无效。
- 400 · USER_BOT_REQUIRED — 此方法只能由机器人调用。
- 400 · USER_ID_INVALID — 提供的用户 ID 无效。