aradotso avatar

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-code

Installs 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

  1. Starts a local SOCKS5 proxy on 127.0.0.1:1080
  2. Intercepts connections to Telegram IP addresses
  3. Extracts DC ID from MTProto obfuscation init packet
  4. Opens a WebSocket (TLS) connection to the matching DC via Telegram domains
  5. 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
1aradotso avatarfacebook-ads-library-mcp-serveraradotso/marketing-skillsfacebook ads library mcp server829skills.sh installs
2black-forest-labs avatarbfl-apiblack-forest-labs/skillsBFL FLUX API integration guide covering endpoints, async polling patterns, rate limiting, error handling, webhooks, and regional endpoints with Python and TypeS735skills.sh installs
3mindrally avatarapollo-graphqlmindrally/skillsGuidelines for developing GraphQL APIs and React applications using Apollo Client for state management, data fetching, and caching701skills.sh installs
4joeseesun avatarqiaomu-markdown-proxyjoeseesun/qiaomu-markdown-proxyRead, fetch, extract, parse, or convert a URL or link into clean Markdown. Use FIRST whenever a user asks to read source content from a webpage, especially WeCh661skills.sh installs
5aj-geddes avatarapi-rate-limitingaj-geddes/useful-ai-promptsImplement API rate limiting strategies using token bucket, sliding window, and fixed window algorithms. Use when protecting APIs from abuse, managing traffic, o647skills.sh installs
6sickn33 avatarapi-documentersickn33/antigravity-awesome-skillsapi documenter628skills.sh installs