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.
Method schema is available as of layer 162. Switch »
Name | Type | Description |
---|---|---|
bot | InputUser | Identifier of the bot associated to the mini bot app |
custom_method | string | Identifier of the custom method to invoke |
params | DataJSON | Method parameters |
Code | Type | Description |
---|---|---|
400 | BOT_INVALID | This is not a valid bot. |
400 | DATA_JSON_INVALID | The provided JSON data is invalid. |
Bots can offer users interactive HTML5 web apps to completely replace any website.
How telegram apps interact with webpages