
Tg Ws Proxy Telegram Socks5
If you're in a region where Telegram gets blocked at the network level, this sets up a local SOCKS5 proxy that tunnels your Telegram Desktop traffic through WebSocket connections to Telegram's data centers. It intercepts the MTProto handshake to figure out which DC you're connecting to, then wraps everything in WSS. Ships as a Python package with optional system tray apps for Windows, macOS, and Linux. The approach is clever because it bypasses DPI without needing a remote VPS. Setup is straightforward: install via pip or grab a binary, point Telegram Desktop to 127.0.0.1:1080, and you're done. Falls back to direct TCP if the WebSocket route doesn't work.
- skills.sh installs
- 837
- GitHub stars
- 61
- last updated
- Jul 14, 2026
Install
$ npx -y skills add aradotso/trending-skills --skill tg-ws-proxy-telegram-socks5 --agent claude-codeInstalls into .claude/skills of the current project.
Files
TG WS Proxy
Skill by ara.so — Daily 2026 Skills collection.
TG WS Proxy is a local SOCKS5 proxy server for Telegram Desktop that reroutes traffic through WebSocket (WSS) connections to Telegram's Data Centers, bypassing network-level blocking without external servers.
Telegram Desktop → SOCKS5 (127.0.0.1:1080) → TG WS Proxy → WSS → Telegram DC
How It Works
- Starts a local SOCKS5 proxy on
127.0.0.1:1080 - Intercepts connections to Telegram IP addresses
- Extracts DC ID from MTProto obfuscation init packet
- Opens a WebSocket (TLS) connection to the matching DC via Telegram domains
- Falls back to direct TCP if WebSocket returns a 302 redirect
Installation
From Source (All Platforms)
git clone https://github.com/Flowseal/tg-ws-proxy.git
cd tg-ws-proxy
pip install -e .
Run Console Proxy (No GUI)
tg-ws-proxy
Run with Tray GUI
# Windows
tg-ws-proxy-tray-win
# macOS
tg-ws-proxy-tray-macos
# Linux
tg-ws-proxy-tray-linux
Linux — AUR (Arch-based)
Sponsors
Details
- Repository
- github.com/aradotso/trending-skills
- Category
- Backend & APIs
- First seen
- May 16, 2026
More from aradotso/trending-skills
All 251- Wewrite Wechat Ai Publishing836
- Jkvideo Bilibili React Native835
- Ai Scanner Garak834
- Bazi Skill Chinese Astrology833
- Career Ops Job Search830
- Holyclaude Ai Workstation820
- Mcp Brasil Public Apis819
- Type4me Macos Voice Input816
- Obliteratus Abliteration815
- Markit Markdown Converter811
- Flipoff Split Flap Display806
- Legalize Es Spanish Legislation806
- Mac Code Local Ai Agent800
- K Skill Korean Ai Tools799
- Codex Plugin Cc787
- Pump Analyzer Solana786
- Turboquant Pytorch772
- App Store Screenshots Generator769
- Caveman Token Optimizer768
- Open Pencil Design Editor766
- Pgmicro Postgres Sqlite764
- Tribev2 Brain Encoding764
- Polymarket Arbitrage Bot762
- Polymarket Copy Trading Bot757