Telegram bots2 minutes to read

Troubleshoot a Telegram webhook that receives no updates

Use getWebhookInfo, the HTTPS health route, and a private message to trace where Telegram webhook delivery stops.

Find the registered destination in getWebhookInfo

Call getWebhookInfo with the same bot credential your deployment uses. Use a Bot API client that reads the token from a private variable. Compare the returned url to TELEGRAM_WEBHOOK_URL. The Bothosting starter registers the full HTTPS URL ending in /telegram. An empty url means there is no registered webhook.

Record pending_update_count and the most recent delivery error time. Send a new /start message in a private chat with the bot, then query the status again. An increasing count or newer error after the test points to an active delivery problem. Telegram webhook status fields.

Identify the failing HTTPS request

On a webhook deployment, request /healthz at the platform HTTPS address. The starter returns HTTP 200 when the listener is reachable. A webhook uses a separate POST to /telegram. If you have a custom hostname, test the same health path there to isolate DNS or certificate problems.

What to check after a new Telegram delivery error
ResponseCheck
404Match the registered path to /telegram and check that the HTTP starter is running.
403Check that the receiver’s TELEGRAM_WEBHOOK_SECRET matches the secret used when registering the webhook. The starter sends it in setWebhook at startup.
503Check Console for startup failures or a handler error. The Node.js starter also returns this while processing another update.

Use the delivery status from Telegram for the POST checks. Keep the bot token and webhook secret in Variables. Telegram’s webhook delivery and secret-header rules.

Check the handler and outgoing reply

After correcting the settings, restart and look for Telegram webhook ready. in Console. Send /start in a private chat with the bot. The Bothosting starter answers that exact command with Your bot is running. If Telegram delivers an update but your custom handler stays quiet, check its allowed update types and message filters, then check for a failed outgoing Bot API call.

Keep pending updates when recovering the webhook. If the bot needs to return to polling, remove its active webhook as part of the migration and verify the new delivery mode before using the same token elsewhere. Switch from a Telegram webhook to polling.