Hi! I am living in Russia and goverment is against Telegram here, it may be blocked in the future.
So I’d like to protect my HASS communication channel with socks5 proxy (Telegram added support of proxy to its applications in latest update), but unfortunatelly HASS does not support proxies, althrougth python-telegram-bot does (with 6+ versions).
You need to init Request class by passing proxy params to constructor (look https://github.com/daimajia/python-telegram-bot/blob/master/telegram/utils/request.py )
And then pass that Request instance to Bot class at initialization ( take a look https://github.com/daimajia/python-telegram-bot/blob/master/telegram/bot.py#L52 )
And add parameters to configure it to configuration file.
Nicholas, good afternoon. Could you contact me? My mail is [email protected], there are questions about the proxy. Thank you.
I see proxy_url and proxy_params in documentation for telegram.polling component, but it seems that it is ignored by HA at least for polling the bot
It should work out of the box: https://github.com/home-assistant/home-assistant/commit/37fef4016e5960f6a6972706e31f3ee149b3c497
It works only for telegram notifications, but HA can not pull the telegram commands using proxy.