Telegram Trigger works only in Test mode but not after workflow activation

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:

  • Database (default: SQLite):

  • n8n EXECUTIONS_PROCESS setting (default: own, main): default

  • Running n8n via (Docker, npm, n8n cloud, desktop app):n8n cloude

  • Operating system: mac OS
    Hello,

    I am using n8n Cloud.

    My workflow is:

    Telegram Trigger

    ↓

    AI Agent

    ↓

    Telegram Send Message

    The workflow works perfectly when I click “Execute workflow” (Test mode).

    The Telegram Trigger immediately receives my message, the AI processes it, and Telegram sends the reply.

    However, after I activate the workflow, nothing happens.

    The bot receives my messages in Telegram, but no workflow execution starts.

    I have already checked:

    • Telegram credentials are valid (“Connection successful”).

    • The workflow is active.

    • Only one Telegram Trigger is connected to this bot.

    • The same bot works perfectly in Test mode.

    • No executions appear after activation.

    Additional information:

    - The workflow is published and active.

    - The Telegram Trigger receives messages only while the editor is in Test mode.

    - As soon as I activate the workflow, the bot stops triggering.

    - I suspect there may be a webhook registration problem.

    What else should I check?

    Thank you.
    n8n version: 2.28.7 (Cloud)

@Ilona_Ilona

Do this

1)Deactivate the workflow
2)Wait about 10 seconds.
3)Activate the workflow
4)Do NOT click “Execute Workflow” after doing this.
5)Go directly to your Telegram app.
6)Send a message to your bot.
7)Check the Executions tab in n8n (on the left sidebar) to see if the execution appeared.

Does it work now?

Paste the following URL into your browser (replace <YOUR_BOT_TOKEN> with your actual token):

https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getWebhookInfo

What to look for in the result:

  • If the url contains /webhook-test/, Telegram is in Test Mode​. Your active workflow will not trigger. You must activate the workflow again to switch it to /webhook/.
  • If the url contains /webhook/, Telegram is in Production Mode​. If it still doesn’t trigger, check if there are any last_error_message fields in that JSON response.

@Ilona_Ilona Check for a last_error_message field in the getWebhookInfo response. This is Telegram’s own error log and often shows exactly why delivery is failing e.g. SSL certificate issues, timeout, n8n returning a non-200 response. It’s the fastest way to diagnose if the webhook is registered correctly but messages aren’t being delivered.

Also make sure you’re checking the Executions tab, not just the canvas, production executions don’t show on the canvas, only in the executions list.

Hi @Ilona_Ilona Welcome!
Give testing and production separate bots. Create a second bot in BotFather, save its token as a second Telegram credential, and keep that credential on the trigger while you build, then swap back to your live bot’s credential before you publish.

Building on the getWebhookInfo suggestions above — if that call shows the production /webhook/ URL and there is still no execution, two things are worth checking that haven’t come up yet:

  1. Force a completely clean re-registration. Telegram sometimes keeps a stale registration even after n8n re-sets it. With the workflow DEACTIVATED, call:

https://api.telegram.org/bot/deleteWebhook?drop_pending_updates=true

Confirm getWebhookInfo now shows an empty url, then activate the workflow. n8n will register the production webhook fresh. drop_pending_updates=true also clears a clogged queue — if pending_update_count in getWebhookInfo is high, Telegram has been retrying old updates and can look “dead” for new ones.

  1. Hunt for a second consumer of the same bot token: another workflow (even inactive-but-tested) using the same credential, a second n8n instance (old trial, local Docker), or any external script polling getUpdates. Polling and webhooks are mutually exclusive — while your webhook is set, a raw getUpdates call returns 409 Conflict (the webhook itself survives), but many polling libraries react to that by calling deleteWebhook automatically, which silently wipes the n8n registration. Check every place that token has ever been pasted.

Since you’re on Cloud, no SSL/reverse-proxy issues apply, so it’s almost certainly one of these two.

If you paste the full getWebhookInfo JSON here (redact the token in the URL), I can tell you which case you’re in.

A useful next step is to inspect the bot’s actual production webhook state instead of only reactivating the workflow. Open this URL in a browser (replace <TOKEN>):

https://api.telegram.org/bot<TOKEN>/getWebhookInfo

Please share these redacted fields: url, pending_update_count, last_error_date, last_error_message, allowed_updates, and max_connections. The result usually identifies the failure quickly:

  • URL contains /webhook-test/: Telegram is still registered to the temporary test webhook.
  • URL is empty: production registration failed.
  • URL contains /webhook/ plus an error: follow the TLS, DNS, redirect, or non-200 error shown there.
  • Pending count keeps growing: n8n is not acknowledging deliveries.
  • URL looks correct and there is no delivery error: check token conflicts and update types.

Also make sure only one active Telegram Trigger uses this bot token, and no other workflow or script is polling the same bot with getUpdates. Telegram allows only one webhook/consumer per bot token.