License
MIT License
Independent Third-Party Guide
TG WS Proxy is a local SOCKS5 proxy. When Telegram DC traffic is detected, it prefers WSS routing via `kws*.web.telegram.org`, and falls back to direct TCP when needed.
Disclaimer: this is a third-party site, not affiliated with Telegram or the project maintainer.
MIT License
GitHub Actions + PyInstaller
v1.1.1 (2026-03-16)
Telegram Desktop
-> SOCKS5 127.0.0.1:1080
-> TG WS Proxy
-> WSS kwsN.web.telegram.org (/apiws)
-> Telegram DC
Windows has tray GUI support, macOS has app packaging, and CLI mode is also available.
Telegram IP ranges are detected, with routing paths for DC and media/non-media traffic.
Supports `--port` and multiple `--dc-ip` entries for network-specific tuning.
Includes pooling, fail cooldown, and fallback logic to reduce reconnect jitter.
Get `TgWsProxy.exe` (Windows) or `TgWsProxy.dmg` (macOS) from Releases.
Default local listener is `127.0.0.1:1080`; tray menu can open Telegram proxy setup directly.
Server `127.0.0.1`, port `1080`, and leave username/password empty.
python proxy/tg_ws_proxy.py --port 1080 \
--dc-ip 2:149.154.167.220 \
--dc-ip 4:149.154.167.220 -v
This is a partial optimization approach. Results depend on network routes, region, ISP, and Telegram-side conditions.
No. It runs as a local process and forwards traffic to Telegram domains/nodes.
The README mentions potential false positives. Download from official Releases and verify files yourself.
It works as a local traffic proxy and does not change your account credentials or Telegram-side authentication model. Still, review source and binaries before use.
The app includes runtime logs for connection/debug status. Treat logs as sensitive operational data and avoid sharing them publicly.
The project is primarily designed around Telegram Desktop workflows. Mobile support is not its main target.