Layer 220
MessagesSendWebViewData
Used by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it.
method
Users
messages.sendWebViewData#dc0242c8 bot:InputUser random_id:long button_text:string data:string = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Bot | InputUser | Bot that owns the web app |
| RandomId | long | Unique client message ID to prevent duplicate sending of the same event |
| ButtonText | string | Text of the keyboard Button Simple Web View 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. |
Returns
UpdatesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
Gogram Example
// MessagesSendWebViewData - positional arguments result, err := client.MessagesSendWebViewData(&tg.InputUserSelf{}, int64(0), "...", "...") if err != nil { // handle error } // result is *tg.Updates