bots.invokeWebViewCustomMethod #

Send a custom request from a mini bot app, triggered by a web_app_invoke_custom_method event ».

The response should be sent using a custom_method_invoked event, see here » for more info on the flow.

Layer 223

dataJSON#7d748d04 data:string = DataJSON;
---functions---
bots.invokeWebViewCustomMethod#87fc5e7 bot:InputUser custom_method:string params:DataJSON = DataJSON;

Parameters #

NameTypeDescription
botInputUserIdentifier of the bot associated to the mini bot app
custom_methodstringIdentifier of the custom method to invoke
paramsDataJSONMethod parameters

Result #

DataJSON

Only users can use this method #

Possible errors #

CodeTypeDescription
400BOT_INVALIDThis is not a valid bot.
400DATA_JSON_INVALIDThe provided JSON data is invalid.
400METHOD_INVALIDThe specified method is invalid.

Mini Apps on Telegram #

Bots can offer users interactive HTML5 web apps to completely replace any website.

Web events #

How telegram apps interact with webpages