TG WS Proxy icon

TG WS Proxy APK

by Ivan Utenkov · Connectivity

Telegram MTProto WebSocket Bridge Proxy

Download APK v2.7.0 · 6.3 MB
Good to know: Non-Free Network Services. What this means.
TG WS Proxy screenshot 1

About TG WS Proxy

Telegram MTProto WebSocket Bridge Proxy — a Rust vibecoded port of Flowseal/tg-ws-proxy.

Listens for Telegram Desktop's MTProto connections on a local port and tunnels them through WebSocket (TLS) connections to Telegram's DC servers.

Telegram channel: @tgwsproxy_rs.

Telegram Desktop → MTProto (TCP 1443) → tg-ws-proxy-rs → WS (TLS 443) → Telegram DC ↘ CF proxy (kws{N}.{cf-domain}) → Telegram DC (WS via Cloudflare) ↘ CF Worker (*.workers.dev) → Telegram DC (TCP tunnel via Cloudflare) ↘ upstream MTProto proxy → Telegram DC (WS fallback) ↘ direct TCP :443 → Telegram DC (last resort)

Android app

A minimal Jetpack Compose wrapper around the same core the CLI runs. Type the flags you would pass to tg-ws-proxy, tap Start, and when the tg://proxy link appears tap it (or let the app open it) to add the proxy in Telegram.

The listen address should be 127.0.0.1 so Telegram on the same phone can connect.

Add --secret <32 hex chars> if you want the link to stay the same across restarts. --log-file is ignored; logs go to the on-screen view and logcat (tg-ws-proxy).

The default arguments carry --quiet, so the on-screen Log panel stays empty until you remove it. That is the default and not a failed start: drop --quiet (or swap it for --verbose) before tapping Start to see log lines. The tg:// link appears either way — it reaches the UI from the listen callback rather than by scraping the log, so --quiet never hides it.

APK file information

Package nameio.github.valnesfjord.tgwsproxyrs
Version2.7.0 (code 207003)
Minimum AndroidAndroid 8.0 · targets Android 16
Architecturesx86_64
SHA-2564e143fc20b0df378212b1af0953eca2d58a4a90bd8af27caa1452de50524a7d5
Signature1db8f7a7d20c416fa9635c654b2e82bb3cfddd6d9231352d8a00386d118d2c18
LicenceMIT — permissive free licence: the source code is public and reusable
Source codegithub.com/valnesfjord/tg-ws-proxy-rs

Permissions

  • Internet access
  • Run in the background
  • Show notifications

Older versions

How to install TG WS Proxy APK

  1. Tap Download APK above, then open the file once the download has finished.
  2. If Android asks, allow your browser to install unknown apps.
  3. Tap Install. TG WS Proxy then appears with your other apps.

Having trouble? Read our guides how to install an APK on Android and "App not installed": how to fix it.

Frequently asked questions

Is TG WS Proxy free?

Yes. TG WS Proxy is distributed under the MIT licence: free, no subscription, and its source code is public.

Is this APK file safe?

The file is the one built and published by the F-Droid repository from the public source code. Its SHA-256 fingerprint is shown above, so you can compare it after downloading. How to check an APK.

Will TG WS Proxy work on my phone?

You need at least Android 8.0. The app also works without Google services, so it runs on recent Huawei phones too.

Similar apps