Layer 220
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

Updates

Possible 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