Layer 220
BotsInvokeWebViewCustomMethod
Send a custom request from a mini bot app, triggered by a web_app_invoke_custom_method event.
method
Users
bots.invokeWebViewCustomMethod#87fc5e7 bot:InputUser custom_method:string params:DataJSON = DataJSON;
Parameters
Returns
DataJSONPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
| 400 | DATA_JSON_INVALID | The provided JSON data is invalid. |
| 400 | METHOD_INVALID | The specified method is invalid. |
Gogram Example
// BotsInvokeWebViewCustomMethod - positional arguments result, err := client.BotsInvokeWebViewCustomMethod(&tg.InputUserSelf{}, "...", &tg.DataJson{}) if err != nil { // handle error } // result is *tg.DataJson