Telegram trigger is not responding (Telegram API Base URL problem?!)

We have built a Telegram workflow, which starts with a Telegram trigger. After some time (sometimes a day, sometimes 3 days, etc.), the Telegram trigger doesn’t respond. Also, the workflow, which is using the current bot credentials, saves and activates/deactivates the workflow, just loading and does not save.

When we refresh the bot token, everything starts working (the trigger is responding, and we can make edits in the workflow).

We know that this is the only workflow that is using the Telegram trigger WITH those credentials.

Also, sometimes, the trigger is not responding, AND after an hour, it runs with all the messages in a row with like 5-20 seconds between them. But this may be a Telegram problem holding our messages for some reason.

As I mentioned above, refreshing the token works, but we need to do this regularly, which is not good.

Also, we are using our own custom base URL in credentials, which is hosting the Telegram API via Google Cloud Run (so we can work with bigger files than the 20MB Telegram default)., Just now, I changed ONLY the Base URL to the default, and the bot started to work

Maybe someone has some experience with problems like these and could point us to what else we could check

Self-hosted n8n 1.120.4, Postgresql DB

Are you still testing within the production Workflow sometimes?

The issue with the Telegram API is, that it allows only one Webhook URL.

So when testing the workflow, the Webhook URL gets registered to the test url and all
further requests will be sent to that, even when the workflow is active.

You have to disable and activate the workflow again, to re-register to the production URL.

1 Like

Okay, thanks @salmansolutions , I didint know that.

So, for the future, how should I handle testing?
Seperate workflow just not to mess with production workflow?

Yes, the recommended way is to create a second bot just for testing.
Here you can read more about the limitations:

1 Like