TG WS Proxy (v1.7.1) is a local MTProto proxy that bridges Telegram Desktop traffic over WebSocket connections, improving connectivity in restricted networks. It runs entirely on your own machine — no third-party servers required. Follow the steps below to install, launch, and connect Telegram Desktop in under two minutes.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Flowseal/tg-ws-proxy/llms.txt
Use this file to discover all available pages before exploring further.
Install & Launch
Download or install TG WS Proxy
- Windows
- macOS
- Linux
- Docker
Go to the GitHub Releases page and download the appropriate binary:
Double-click the downloaded
| File | Requirement |
|---|---|
TgWsProxy_windows.exe | Windows 10 or later |
TgWsProxy_windows_7_64bit.exe | Windows 7 x64 |
TgWsProxy_windows_7_32bit.exe | Windows 7 x32 |
.exe to launch. On first run an instruction window opens automatically. The application then minimises to the system tray.Connect Telegram Desktop
Once the proxy is running, point Telegram Desktop at it using one of the two methods below.Option 1 — Automatic (recommended)Right-click (or click) the TG WS Proxy tray icon and choose Open in Telegram. Telegram Desktop opens with the proxy pre-configured and asks you to confirm the connection. Click Enable and you are done.If Telegram does not open automatically:
- Choose Copy Link from the tray menu.
- Paste the link into your Saved Messages chat in Telegram and click it.
- Confirm the connection prompt.
- Open Telegram Desktop and go to Settings → Advanced → Connection Type → Use custom proxy.
- Click Add proxy and fill in the fields:
| Field | Value |
|---|---|
| Type | MTProto |
| Server | 127.0.0.1 |
| Port | 1443 |
| Secret | Copy from the proxy tray menu (Settings) or from the log file |
- Click Save and then Enable.
Verify the connection
After enabling the proxy, Telegram Desktop shows a green connection indicator in the connection type settings. You can also inspect the proxy log to confirm traffic is flowing:If you see
- Tray app: right-click the tray icon and choose Open Logs.
- CLI mode: logs are printed to
stderrby default. Add--log-file proxy.logto write them to a file.
WS connect failed lines followed by fallback, the primary WebSocket path is blocked in your network and the proxy has automatically switched to a Cloudflare-proxied fallback — this is expected behaviour and connections will still work.Next Steps
CLI Reference
All command-line flags, environment variables, and configuration options for the headless proxy.
Cloudflare Proxy
Set up your own Cloudflare-proxied domain for the fallback chain to bypass stricter blocks.
Cloudflare Worker
Deploy a free Cloudflare Worker to proxy WebSocket traffic to Telegram DCs.
Fake TLS Setup
Configure the
ee-secret mode with SNI masking and an Nginx upstream for maximum stealth.