Задать webhook URL

POST
/set-webhook-url

Authorization

ApiKeyAuth
Authorization<token>

API-ключ интеграции со страницы бота Settings → API Keys, передаётся как есть, без префикса Bearer.

In: header

Request Body

application/json

Задать webhook URL для бота

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/set-webhook-url" \  -H "Content-Type: application/json" \  -d '{    "url": "string"  }'
Empty