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.
POST /in/telegramX-Telegram-Bot-Api-Secret-Token: <secret>{ id, type, subject }Connect
Set up the webhook, verify the provider signature, then inspect the normalized event shape.
- In @BotFather, create the bot and copy its token.
- In Hooks, create an endpoint with provider Telegram and copy its ingestion URL.
- Set a shared secret on the endpoint, then call setWebhook with the same secret_token.
- List the allowed_updates you need; the default subset omits chat_member and message_reaction.
- Call getWebhookInfo to confirm the URL and check last_error_message.
| Header | X-Telegram-Bot-Api-Secret-Token: <secret> |
|---|---|
| Algorithm | Shared secret compared in constant time; Telegram does not sign the body. |
| Replay window | None; Telegram retries reuse update_id, so dedupe is exact. |
| Delivery id | Body `update_id`. |
- Pass the same value as
secret_tokeninsetWebhook; Hooks stores it as the endpoint secret. - A request without the secret header is rejected before storage.
- One Update arrives per request;
allowed_updatesdecides which update fields Telegram sends. - Unknown future Update fields normalize to
<snake_case>.receivedinstead of being dropped.
| event.type | subject | What it means |
|---|---|---|
message.received | message | Private or group message; text or caption becomes the subject title. |
message.edited | message | Edited message; edit_date becomes occurredAt. |
channel_post.received | message | Post published in a channel. |
callback_query.received | callback_query | Inline keyboard button pressed. |
inline_query.received | inline_query | Inline query sent to the bot. |
pre_checkout_query.received | payment | Payment confirmation requested; amount and currency are included. |
chat_member.updated | chat_member | Member added, removed, or role changed. |
chat_join_request.received | chat_join_request | User requested to join a group or channel. |
message_reaction.received | message_reaction | Reaction added or removed on a 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"
}
}Filter: human text messages only
{
"allow": [{ "field": "event.type", "op": "equals", "value": "message.received" }],
"ignoreBots": true
}Destination: reply into the same chat
{
"token": "{{secret.TELEGRAM_BOT_TOKEN}}",
"chatId": "{{var.TELEGRAM_CHAT_ID}}",
"text": "{{event.subject.body | truncate:2000}}"
}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.

| Symptom | Fix |
|---|---|
401 or 403 on every Telegram request | Set the endpoint verification mode to shared-secret and make the endpoint secret exactly match the secret_token passed to setWebhook. |
No updates after setWebhook | Run getWebhookInfo and check last_error_message. Confirm the URL is the endpoint ingestion URL and that allowed_updates includes the field you need. |
Duplicate messages | Telegram retries an update when it does not receive a 2xx response. Hooks returns 202 after storing the event and deduplicates by update_id. |
Pair with a destination
Reference & sources
Reference
- Receiving eventshttps://core.telegram.org/bots/api#setwebhook
- Verify signatureshttps://hooks.events/docs/signatures.md
- Payload templateshttps://hooks.events/docs/templates.md
Other sources
X-Hook-Secret handshake.Auth0Auth0 custom log streams POST tenant log events (login, signup, logout, token exchange, user changes) to a webhook.AWS SNSAWS SNS delivers JSON notifications and subscription confirmations to HTTP(S) endpoints, signed with an RSA certificate published under an sns.<region>.amazonaws.com URL.Azure DevOpsAzure DevOps service hooks send git pushes, pull requests, work items, builds and releases to a public webhook endpoint.BitbucketBitbucket Cloud repository webhooks cover pushes, pull request changes, and issue events.BrowserbaseBrowserbase Functions webhooks report invocation and build lifecycle states (pending, running, completed, failed).Cal.comCal.com booking webhooks wrap the booking in a triggerEvent envelope and sign each delivery with an HMAC-SHA256 of the raw body.Browse all sourcesSetup steps, signatures, events, and payload samples for every provider.