Free tool · no sign-up

Telegram Bot Webhook Tester & Debugger

Quick answer

Paste your bot token to check getMe and getWebhookInfo with a plain-English diagnosis of pending updates and delivery errors. Set or delete the webhook with every Bot API parameter — url, secret_token, allowed_updates, max_connections, drop_pending_updates and ip_address — and copy the curl command. Then send realistic sample updates (/start, callback_query, channel_post, payments…) to your endpoint and see status code, headers, body and response time.

setWebhook parameters

allowed_updatesempty = default set
curl
curl -X POST "https://api.telegram.org/bot<BOT_TOKEN>/setWebhook" \
  -H "Content-Type: application/json" \
  -d '{"url":"","max_connections":40}'

Send a test update to your webhook

Posts the JSON to your URL like Telegram does, with the secret header.

Webhook bugs are the #1 reason Telegram bots go silent: wrong SSL chain, a non-200 response, a missing secret check, a blocked port or thousands of stuck pending updates. This tester shows you what Telegram sees and lets you fire test updates at your server without touching a real chat.

  • getMe + getWebhookInfo health diagnosis
  • setWebhook with all parameters + curl
  • deleteWebhook with drop_pending_updates
  • 13 realistic sample updates incl. secret header
  • Status, headers, body and response time

Every setWebhook parameter explained

url — HTTPS endpoint on port 443, 80, 88 or 8443. secret_token — 1–256 characters sent in the X-Telegram-Bot-Api-Secret-Token header so you can reject fake requests. allowed_updates — the update types you want (empty = all except chat_member, message_reaction and message_reaction_count). max_connections — 1–100 simultaneous HTTPS connections (default 40). drop_pending_updates — discard the queue. ip_address — fixed IP instead of DNS.

Read getWebhookInfo like a pro

pending_update_count grows when your server doesn't answer 200 fast enough. last_error_message tells you why: SSL errors, “Wrong response from the webhook: 500”, timeouts or connection refused. The tester translates each into a concrete fix.

Simulate updates safely

Test updates are sent from Adsun's server to your public HTTPS URL with the same JSON shape and secret header Telegram uses. Only public HTTPS hosts on Telegram's ports are allowed. Your bot token is never sent to Adsun — Bot API calls go straight from your browser to api.telegram.org.

Frequently asked questions

How do I check if my Telegram webhook is working?

Paste the bot token and press Check bot. The tool calls getWebhookInfo and shows the URL, pending updates and the last error with a fix. Zero pending updates and no recent errors means deliveries are accepted.

Why is my Telegram webhook not receiving updates?

The usual causes are an invalid SSL chain, a non-200 response, a port other than 443/80/88/8443, a firewall, or the bot still being used with getUpdates. getWebhookInfo's last_error_message shows which one.

What is secret_token in setWebhook?

A string you choose (A–Z, a–z, 0–9, _ and -, up to 256 characters). Telegram sends it in the X-Telegram-Bot-Api-Secret-Token header with every update so your server can reject requests that don't come from Telegram.

How do I delete a Telegram webhook?

Press Delete webhook (optionally with drop_pending_updates). This calls deleteWebhook so you can switch back to getUpdates long polling.

Can I use getUpdates while a webhook is set?

No. Telegram returns a 409 Conflict error. Delete the webhook first.

Is it safe to enter my bot token here?

Bot API requests go directly from your browser to api.telegram.org; Adsun never receives the token. For extra safety, revoke and regenerate it in @BotFather after debugging.

What should my webhook return?

Any HTTP 2xx, as fast as possible. You may also reply with a Bot API method in the response body (e.g. {"method":"sendMessage",...}) to answer without an extra request.

Related free tools & guides

More free Telegram tools

Adsun is an independent Telegram ad network and is not affiliated with Telegram or Fragment. Bot tokens entered here are sent only from your browser to api.telegram.org; revoke a token in @BotFather if you think it leaked.

Want to try?

See real Adsun ads live in Telegram.