CRMchat APIBeta
Telegram APIBots

bots.invokeWebViewCustomMethod

POST
/workspaces/{workspaceId}/telegram-accounts/{accountId}/call/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.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

workspaceId*string

Workspace ID

accountId*string

Telegram account ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

params*

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.

Response Body

application/json

application/json

curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/bots.invokeWebViewCustomMethod" \  -H "Content-Type: application/json" \  -d '{    "params": {      "bot": {        "_": "inputUserEmpty"      },      "customMethod": "string",      "params": {        "_": "dataJSON",        "data": "string"      }    }  }'
{  "result": {    "_": "dataJSON",    "data": "string"  }}