I am using wireguard to connect to my HA when I am outside my network and ideally I would like to keep it that way. But what I would also like to do is to use a webhook to communicate with my telegram bot. Is there a way? Like a reverse proxy maybe?
It would be great if the program/service that is exposed to the outside only allowed connections from telegram but I am not sure whether that’s at all possible.
Hey guys, how much of this still applies today? Because I have a similar NGINX HTTPS setup in front of a HTTP-HA… and I 've followed all the instructions I can find but I still don’t get my callbacks working.
The sad thing is that I don’t get errors in the logs as well. My telegram bot logs are set to DEBUG and yet all seem ‘fine’.
Nothing on the logs makes me think that you aren’t forwarding the incoming messages correctly from your router or that you have used the setWebhook with the wrong parameters.
Seems to be an SSL issue with my NGINX. Apparently I am not using the correct SSL certificate that Telegram wants. I am using a plain Let’s Encrypt certificate whereas according to several Google Searches , Telegram requires that I use the full certificate chain.
Which I don’t even know how to… I created my “chain” (in quotes) certificate from stuff copied and pasted from several files that Let’s Encrypt provides (without being clear whether and how they are needed) and I replaced my plain certificate.
I can’t say if that worked (my NGINX accepted the new file) however the webhook now returns a different more vague error of 401 Unauthorized. Now is it unauthorized because of my certificate? Is it unauthorized because of another configuration? Who can tell?