TG WS Proxy is a local MTProto proxy that routes Telegram Desktop traffic over WebSocket connections. On Linux it is available as aDocumentation 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.
.deb package for Debian-based distributions, through the AUR for Arch Linux users, and as a standalone binary for every other distribution. A headless CLI package is also provided for server or minimal-desktop setups.
Installation
- Debian / Ubuntu
- Arch Linux (AUR)
- Other distros
Download After installation, launch TG WS Proxy from your application menu or run
TgWsProxy_linux_amd64.deb from the releases page, then install it with dpkg:tg-ws-proxy-tray-linux in a terminal.The tray app requires AppIndicator support in your desktop environment. GNOME users may need the AppIndicator and KStatusNotifierItem Support extension. KDE Plasma, XFCE, and most other DEs include AppIndicator support out of the box.
systemd Service (CLI Package)
Thetg-ws-proxy-cli AUR package registers a systemd template unit that lets you run the proxy as a background service. The instance name encodes the port and secret separated by a colon:
Connect Telegram Desktop
Automatic
When the tray app is running, click its icon in the system tray and choose Open in Telegram. Telegram Desktop will open and prompt you to enable the proxy.Manual
Open Telegram proxy settings
In Telegram Desktop go to Settings → Advanced → Connection type, then select Use custom proxy.
Add a new proxy
Click Add proxy and fill in the fields:
- Type: MTProto
- Server:
127.0.0.1 - Port:
1443 - Secret: copy from the first-launch window, the Settings dialog, or the log file
If you changed the default host or port (for example when using the CLI with
--port), substitute those values for 127.0.0.1 and 1443 above.