Layer 220
method Users
bots.invokeWebViewCustomMethod#87fc5e7 bot:InputUser custom_method:string params:DataJSON = DataJSON;

Parameters

Name Type Description
Bot InputUser Identifier of the bot associated to the mini bot app
CustomMethod string Identifier of the custom method to invoke
Params DataJSON Method parameters

Returns

DataJSON

Possible 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