Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socks #62

Open
wormen opened this issue Apr 17, 2019 · 1 comment
Open

socks #62

wormen opened this issue Apr 17, 2019 · 1 comment

Comments

@wormen
Copy link

wormen commented Apr 17, 2019

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

@mast
Copy link
Owner

mast commented Jun 28, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants