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 | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
bot | InputUser | Ja | Bot that owns the web app |
random_id | long | Ja | 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 | Ja | Text of the [keyboardButtonSimpleWebView](https://core.telegram.org/constructor/keyboardButtonSimpleWebView.md) that was pressed to open the web app. |
data | string | Ja | Daten zur Weiterleitung an den Bot, erhalten von einem [`web_app_data_send` JS-Ereignis](https://core.telegram.org/api/web-events.md#web-app-data-send). |
Antworten
Updates
MTProto RPC
- 400 · BOT_INVALID – Dies ist kein gültiger Bot.