messages.sendBotRequestedPeer
根据 KeyboardButtonRequestPeer 按钮的请求,发送一个或多个选定的对等点。
根据 [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md) 按钮的请求,发送一个或多个选定的对等点。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
peer | InputPeer | 是的 | 发送 [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md) 按钮的机器人。 |
msg_id | int | 否 | 包含带有 [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md) 按钮的回复键盘的消息的 ID。 |
webapp_req_id | string | 否 | 如果该按钮是为[小应用»](https://core.telegram.org/api/bots/buttons.md#requesting-peers-via-mini-apps)准备的,则[bots.requestWebViewButton](https://core.telegram.org/method/bots.requestWebViewButton.md)返回小应用请求ID。 |
button_id | int | 是的 | [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md) 构造函数中的 `button_id` 字段。 |
requested_peers | Vector<InputPeer> | 是的 | 被选中的同龄人。 |
回应
Updates
MTProto RPC
- 400 · MESSAGE_ID_INVALID — 提供的消息 ID 无效。
- 400 · PEER_ID_INVALID — 提供的对等 ID 无效。