telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

socks

Open wormen opened this issue 5 years ago • 1 comments

how to make this library work with socks/socks5/TOR ?

wormen avatar Apr 17 '19 15:04 wormen

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.

mast avatar Jun 28 '20 18:06 mast