Source · Telegram · Verified December 2, 2026

Telegram Bot webhook source guide

A Hooks Telegram endpoint receives Bot API Update objects through setWebhook, verifies X-Telegram-Bot-Api-Secret-Token, and normalizes each update into message.received, callback_query.received, and related event types.

Telegram does not sign webhook requests. The secret_token passed to setWebhook is the shared secret Hooks compares on every update, while update_id supplies the delivery id for deduplication. Outbound replies use the separate Telegram destination.

Request → verify → eventlive shape
IncomingTelegramPOST /in/telegram
//VerifyX-Telegram-Bot-Api-Secret-Token: <secret>
Normalizedmessage.received{ id, type, subject }

Connect

Set up the webhook, verify the provider signature, then inspect the normalized event shape.

  1. In @BotFather, create the bot and copy its token.
  2. In Hooks, create an endpoint with provider Telegram and copy its ingestion URL.
  3. Set a shared secret on the endpoint, then call setWebhook with the same secret_token.
  4. List the allowed_updates you need; the default subset omits chat_member and message_reaction.
  5. Call getWebhookInfo to confirm the URL and check last_error_message.

Payload & templates

One normalized event shape feeds every filter and destination template.

Every adapter produces this shape before filters or templates run. The raw payload and sanitized headers stay attached for audit, but filters and templates read the normalized fields.

Normalized event

{
  "id": "evt_01j9m7c4d5",
  "source": "telegram",
  "type": "message.received",
  "action": "received",
  "deliveryId": "900000001",
  "occurredAt": "2026-12-02T09:14:03.000Z",
  "actor": { "login": "alice", "id": "123456789", "type": "user" },
  "project": "Acme support",
  "subject": {
    "kind": "message",
    "id": "42",
    "title": "Login fails on Safari",
    "body": "Login fails on Safari"
  }
}

Delivery & errors

408, 425, 429, and 5xx responses retry with backoff and honor Retry-After; other 4xx responses fail permanently with a named code. Every attempt keeps the rendered request and the destination response, so a failure points at one field or one status instead of a guess.

Hooks delivery detail: attempt timeline, request payload, and the destination response for one delivery
Delivery detail: the attempt timeline, the rendered request the destination received, and its response — the same record an event keeps for every destination.

Pair with a destination

Reference & sources

Reference

Other sources