Rux
June 27, 2025, 5:22am
1
Hi there!
I’m trying to make a simple telegram integration:
I send a message to my telegram bot
I receive the message
the AI agent replies.
However I cannot make the telegram Node work - as I always get this error:
“Bad Request: bad webhook: Failed to resolve host: Name or service not known”
These are the webhook URLs for test & Prod in my telegram Node:
Test:
https://n8n.example.com/webhook-test/cc8708f1-ca2d-492e-a84c-46b37a830d4f/webhook
Prod:
https://n8n.example.com/webhook/cc8708f1-ca2d-492e-a84c-46b37a830d4f/webhook
Im self hosting. I tried playing with the vars, but it says thats a Paid Plan feature.
Is there any way I can work around this?
thanks!!!
Hi
Are you actually using n8n.example.com
, or is that just a placeholder?
if ur using it that’s likely why Telegram throws the “Failed to resolve host” error
Because n8n.example.com
isn’t a real, reachable domain
1 Like
Rux
June 27, 2025, 2:11pm
3
thanks @BuddiesD
that was precisely the error, but I didn’t know how to change the URL.
I fixed it now.
Turns out if you are self hosting - you have to set the WEBHOOK_URL
environment variable in your Docker configuration (if running n8n on Docker)
in your docker-compose.yml file: replace this env variable with your domain
WEBHOOK_URL=https://your.actual-domain.com
recreate your n8n container (docker-compose down → “up -d”)
1 Like
system
Closed
July 4, 2025, 2:12pm
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.