messages.sendWebViewData
Used by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it.
Used by the user to relay data from an opened [reply keyboard bot mini app](https://core.telegram.org/api/bots/webapps.md) to the bot that owns it.
| Name | Type | Required | Description |
|---|---|---|---|
bot | InputUser | Yes | Bot that owns the web app |
random_id | long | Yes | Unique client message ID to prevent duplicate sending of the same event. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |
button_text | string | Yes | Text of the [keyboardButtonSimpleWebView](https://core.telegram.org/constructor/keyboardButtonSimpleWebView.md) that was pressed to open the web app. |
data | string | Yes | Data to relay to the bot, obtained from a [`web_app_data_send` JS event](https://core.telegram.org/api/web-events.md#web-app-data-send). |
Replies
Updates
MTProto RPC
- 400 · BOT_INVALID — This is not a valid bot.