-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
HTTP Proxy support #176
Comments
https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1_proxy.html only proxy empty and socks are implemented |
doesn't work for HTTP proxies |
http gradually fades into the past. But let's wait for the answers of professionals. |
Telegram clients usually connect via TCP directly, and HTTP isn’t used at all. |
We use it as our proxy only supports HTTP. The Telegram Desktop client also supports it. The log tells us this [ 3][t 4][1522496564.618938208][Td.cpp:3933][!Td][&td_requests] Receive request 3: setProxy { [ 3][t 4][1522496564.618938208][ConfigManager.cpp:448][!Recoverer][&config_recoverer] Failed to connect for 0.002220 |
See how it is implemented in Telegram Desktop https://github.com/telegramdesktop/tdesktop |
Telegram APIs support HTTP protocol, but this usually considered a fallback whether standard TCP connections can’t be used, and not all the clients support it: afaik only TDesktop, iOS and Windows Phone apps support it, and only TDesktop offers the possibility to use a HTTP proxy. So, tl;dr: TDLib doesn’t support connecting to Telegram servers via HTTP, so you can’t connect to Telegram servers through an HTTP proxy. If you want to use a proxy, at the moment, you must use a SOCKS5 proxy. |
TDLib doesn't support HTTP proxy at the moment, but setProxy method was designed to easily add HTTP-proxy support in the future. HTTP protocol is also supported by TDLib, so HTTP proxy support wasn't implemented just because it isn't needed by main clients based on TDLib. |
Preston is to blame. He wrote too many cycles. |
If you're using tdlib with Python on Linux, you can use proxychains to connect through HTTP Proxy |
My College Wi-Fi uses HTTP proxy with authentication. I was looking towards Telegram as a WhatsApp alternative but only Telegram UWP supports it currently. |
HTTP proxy support was added to TDLib 1.3.0. |
Also Telegram X supports http proxy. |
Please add support for windows auth session with auto-detect system proxy by kerberos auth proxy. Testing telegram in windows 10 not connect, because not detect kerberos mechanism of authentication. Thanks. |
Is there in some way support for a HTTP Proxy or is it SOCKS only?
The text was updated successfully, but these errors were encountered: