Running Telegram bots on localhost

I created a template for a telegram bot on localhost. But I don’t understand how it should work. The bot works in the cloud, but on localhost it gives an error that I have http, but I need https for the bot. I’m a newbie and I don’t understand how to do this so that it is free and for a very long time. Important: I want to do this without docker

Thats correct localhost is not https

You can take a look at ngrok there you can create a free account and have a https url connection/gateway to your localhost installation.

After you set this up you will have to let telegram now what your webhook is

Use your bot id and telegram url

https://api.telegram.org/bot7000000000000000000000000/setWebhook?url=https://0000000000000ngtokstringfree.app

if this answers your question please hit the ‘solution’ button :slight_smile:

I’ve heard about ngrok and cloudflared tunnel but I need an option where, for example, I’ll create my own server that will do http → https. Ngrok is a bad option for this

but Ngrok Free URLs Are Blocked by Telegram what to do now

Hi, this is incorrect. It works for me.

Reg,
J.

@KAVIESHWARA_M
I have the exact setup running on a iMac, with ngrok, n8n in Docker. So yeah it does work. If you need further assistance, start with posting your Workflow.

yeah i have solved it and i have another issue


why can’t i connet my linkedin and my self host url and how to solve it can u help me

This error indicates that the version passed in the request header X-LinkedIn-Version has been deprecated (e.g., 202401). This occurs because all versions are scheduled for deprecation after a specific time window (e.g., 12 months). Refer to the Sample Response for more information.

So It might be that the LinkedIn node uses the deprecated API.

But you can use the HTTP Node and control which API url to use.

Further information can be found

https://community.n8n.io/t/step-by-step-guide-how-to-post-to-linkedin-via-n8n-automations/61666

There seems to be reported problem on github with a workaround for those working in Docker.

https://github.com/n8n-io/n8n/issues/14678

or use this solution as I described (HTTP Node)

Changing the API version on docker 

line 41 of GenericFuntions.js
"LinkedIn-Version": "202504"

 
Then stop your app and restart

if you think this solves the problem (for now) please hit the SOLUTION button