Telegram api doesnt work with tunnel more then once

Hello,

I’m very new to n8n but eager to learn!

I’m currently facing the issue of not knowing any alternative to tunneling to provide internet access to my local machine. I’m trying this because I want to use Telegram to create a chatbot that’s running with Ollama.

Everything works when I test it with 'npx start n8n --tunnel', and I’m able to receive messages from my Telegram bot and send a reply to the account that messaged the bot. However, when I set the workflow to active, it works once and then stops responding.

Is there an easy-to-understand way to connect to Telegram or an alternative to tunneling?

More Info: I don’t have much experience with terminal usage or Node.js (which, by the way, I used with npx to install n8n locally on my Mac M1). So, I’m very new to this and would really appreciate any help.

I also speak german if thats easier for people to communicate.

Thanks so much in advance!

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
  • n8n version: 1.66.0
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npx
  • Operating system: Mac

Hey @vogelmix,

Welcome to the community :tada:

Once you have made the activated the workflow are you trying to also test it? I would avoid our tunnel if possible as we plan to remove it, Something like ngrok or Cloudflared would be a better option unless you already know how to do port forwarding and configure DNS for your own domain.

I’d recommend setting up a cloudflare tunnel instead.
You could either run cloudflared tunnel --url http://localhost:5678 to get a random tunnel domain, and then set it as your WEBHOOK_URL env variable for n8n.
Or, of you own a domain, and manage the DNS records for it on cloudflare, you can also create your own n8n subdomain, and use that for the tunnel instead.

@Jon has this pretty well documented here.

I did as said until the point of creating the tunnel on the website. But where do i find the .env file??

okay well I figured the step out, now im wondering what to input into the ‘Domain’ field on the cloudflare side next to the subdomain…

This is where im stuck:

Do you have a domain, that is also managed on cloudflare?

No I don’t. I do though have a domain name on a different service (ionos).

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.