messages.sendWebViewData
用户用来将数据从打开的回复键盘机器人迷你应用程序中继到拥有它的机器人。
用户用来将数据从打开的[回复键盘机器人迷你应用程序](https://core.telegram.org/api/bots/webapps.md)]中继到拥有它的机器人。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
bot | InputUser | 是的 | 拥有网络应用程序的机器人 |
random_id | long | 是的 | 唯一的客户端消息 ID,以防止重复发送同一事件。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息,请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |
button_text | string | 是的 | 按下以打开 Web 应用程序的 [keyboardButtonSimpleWebView](https://core.telegram.org/constructor/keyboardButtonSimpleWebView.md) 的文本。 |
data | string | 是的 | 要中继到机器人的数据,从 [`web_app_data_send` JS 事件](https://core.telegram.org/api/web-events.md#web-app-data-send) 获取。 |
回应
Updates
MTProto RPC
- 400 · BOT_INVALID — 这不是一个有效的机器人。