mast / telegram-bot-api

First Telegram Bot API node.js library
http://mast.github.io/telegram-bot-api/
MIT License
246 stars 64 forks source link

socks #62

Open wormen opened 5 years ago

wormen commented 5 years ago

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

mast commented 4 years ago

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.