telegram-bot-api
telegram-bot-api copied to clipboard
socks
how to make this library work with socks/socks5/TOR ?
The only way to do it now is to use baseUrl
parameter in api constructor. I used it when Telegram was blocked in Russia.
Idea is to have VPS on the country where telegram is not blocked and configure reverse proxy on this VPS that will forward traffic from your custom URL to api.telegram.org. Then you can use your custom URL in constructor and it will work.