Telegram Trigger - Bad Request

Hi,
yes, there are some good explanations to that topic. But for a full understanding I still need some more information - just to get deeper.

Describe the problem/error/question

Am I right, that Telegram Trigger Node in n8n only works only with a public URL?
If yes, may be DDNS a solution?
How can I get the n8n-generated URL as displayed in https://github.com/n8n-io/n8n/issues/12967?
What are the differences to Node RED (sorry), where a telegram-receiver-Node is available? As far as I remember, this node works locally.

What is the error message (if any)?

Telegram Trigger: Bad Request: bad webhook: Webhook can be set up only on ports 80, 88, 443 or 8443

Please share your workflow

{
“nodes”: [
{
“parameters”: {
“updates”: [
“message”
],
“additionalFields”: {}
},
“type”: “n8n-nodes-base.telegramTrigger”,
“typeVersion”: 1.1,
“position”: [
0,
0
],
“id”: “276a28e7-d536-4172-9eac-d2c1aeef5acd”,
“name”: “Telegram Trigger”,
“webhookId”: “6247d507-14ba-435f-8266-61deb9919b34”,
“credentials”: {
“telegramApi”: {
“id”: “SP4ZdoIvLtHtZ5qo”,
“name”: “Telegram account”
}
}
}
],
“connections”: {},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “52963edc37f972da37151231b15dda2c2b0e50e48cc11dbd4e7b0b34dc9f1324”
}
}

Environmentvariable (trial and → error)

Environment="WEBHOOK_URL=https://n8n:5678/"

Information on your n8n setup

  • n8n version: 1.8.41
  • Database (default: SQLite):SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):default
  • Running n8n via (Docker, npm, n8n cloud, desktop app):npm
  • Operating system:debian bookworm

Hi,

you would need to use a tunnel service like ngrok, cloudflare, etc (even n8n has a --tunnel option) as you most likely don’t have a direct routable ip address.

you map the tunnel (lets say: https://whatever-name to localhost 5678

after that you set the WEBHOOK_URL=https://whatever-name/

as it has been requested many times: here’s a solution N8n Desktop custom Webhook url ngrok - #4 by Jon
(but you need to change the port accordingly)

reg,
J.

1 Like

thank you so much

1 Like

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