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.
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
bot | InputUser | أيوه | Bot that owns the web app |
random_id | long | أيوه | 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 | أيوه | Text of the [keyboardButtonSimpleWebView](https://core.telegram.org/constructor/keyboardButtonSimpleWebView.md) that was pressed to open the web app. |
data | string | أيوه | 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). |
الردود
Updates
MTProto RPC
- 400 · BOT_INVALID — This is not a valid bot.