StatsHub Docs
APIEndpoint referenceBot

/bot/telegram

Serves the webhook.

POST
/api/bot/telegram

Serves the webhook.

Authorization

telegramWebhookSecret
X-Telegram-Bot-Api-Secret-Token<token>

Secret token registered with the Telegram webhook.

In: header

Header Parameters

X-Telegram-Bot-Api-Secret-Token?string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/bot/telegram" \  -H "Content-Type: application/json" \  -d '{    "message": {      "chat": {        "id": 0,        "type": "string"      },      "message_id": 0,      "text": "string"    },    "update_id": 0  }'
{  "message": "string",  "ok": true,  "test": true}