Repository navigation
Feature Request: Allow Proxy Configuration Before Telegram Login #187
mostafa-binesh
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
Telegram Drive already supports SOCKS5, HTTP, and HTTPS proxies, but the proxy settings are currently only accessible from the dashboard after a successful Telegram login.
For users in restricted networks where direct connections to Telegram are blocked, this creates a circular dependency:
The application also does not appear to automatically use the operating system’s proxy settings. I tried manually creating
network_settings.jsonbefore login, but the initial Telegram connection still did not work.Proposed solution
Add a Proxy Settings button or section to the initial authentication/setup screen so users can configure their connection before any Telegram API requests are made.
The pre-login proxy form could reuse the existing proxy functionality and support:
Ideally, proxy passwords should continue to use the existing secure credential storage implementation rather than being stored as plaintext.
Expected behavior
When a proxy is configured on the authentication screen, all initial Telegram operations—including
cmd_connect, requesting a login code, QR authentication, and session restoration—should use that proxy.Motivation
This would make Telegram Drive usable for people in countries or networks where Telegram cannot be reached directly. At the moment, these users may be unable to complete the first login even though the application already contains proxy support.
Implementation
I would like to work on this feature and submit a pull request. My proposed approach is to reuse or extract the existing proxy settings UI and expose it from the authentication screen, then ensure the saved network configuration is applied before initializing the Telegram client.
Please let me know if this approach fits the project architecture or if you would prefer a different implementation.
All reactions