I’ve installed n8n at home on Truenas Scale from the store and I’ve setup a DNS to access it in https from outside through NAT in my internet box.
Every works fine to access it from outside but I don’t get the Telegram “On Message” trigger to work when discussing with my bot (I did test the same workflow on n8n cloud without any issues).
Is the WEBHOOK_URL environment variable set in n8n such that it matches the external hostname you use to reach n8n from outside (i.e. what you have mapped in public DNS)?
When the Telegram Trigger node is activated, it sends the url to Telegram, so you need to configure n8n to “know” what the external URL should be (e.g. WEBHOOK_URL=https://my-chosen-dyndns-subdomain.the-shared-tld-name-whatever.com). Otherwise it will send Telegram the hostname:port that is only reachable within your LAN (e.g. http://truenas123:5678)
Nope I didn’t put an ENV variable for the WEBHOOK_URL parameter as the webhook_url shown in the Telegram workflow component was correct and matches the url I used to access n8n from the outside.
Putting the ENV variable did not fix it and the webhook_url is the same but I can see that the weebhook_url is depedent of the variable when set.
I’ve tried to send a POST request with postman with the webhook_url and basic auth with my n8n login credential and it return a 403 http code with “message”: “Provided secret is not valid”