How do i change my telegram webhook url to https, im hosting locally and using nodejs

my node telegram on message gives me this error:
Telegram Trigger: Bad Request: bad webhook: An HTTPS URL must be provided for webhook

IF you need to have an https endpoint for telegram to register the webhook, you could use a service like NGROK, please see this video for details:

2 Likes

Perfect, u r a lifesaver, or alot of countless hours. Thank you so much!!!

1 Like

You are very welcome.

If that was helpful, kindly mark the answer as solution. Thank you.
Cheers!

1 Like

i’ve managed to get the url to be https using ngrok but telegram stiill throws me the same error Telegram Trigger1: Bad Request: invalid webhook URL specified

Hey @Daniel_Kyeat hope your day is going well.

is not the same as the original

completely different error.

Could you share:

  • what your WEBHOOK_URL env var is set to?
  • what Webhook URLs are from the Telegram Trigger node (expand the top section).
1 Like

Hello @jabbson i have found the solution to the problem in this link
I made an error of not changing the port details when setting up the static domain

Thank you so much for the follow up tho :slight_smile:

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