REGSTAR
← All projects
MVP · v12.10.1-wsp.1

> android / telegram fork / proxy

Telegram-WSP

Telegram for Android with TgWsProxy integrated directly into the client.

The project keeps Telegram as close to upstream as possible: TgWsProxy runs behind a localhost proxy, Telegram's tgnet remains untouched, and the integration is applied as a small reproducible overlay.

AndroidKotlinGoMaintained forkGPL-3.0
01 Telegram Android upstream
02 minimal Telegram-WSP overlay
03 localhost MTProto proxy · 127.0.0.1:1443
04 tgwsproxy-core · WebSocket / Cloudflare routes
StageMVP
Telegram upstream12.10.1 · build 7038
Packageorg.telegram.messenger.web
Releasev12.10.1-wsp.1

> approach

Minimal changes to original Telegram

The integration deliberately avoids replacing Telegram networking. The current source-level overlay changes only five upstream files and does not modify TMessagesProj/jni/tgnet/.

01 / integration

Proxy behind the official proxy API

Telegram-WSP starts tgwsproxy-core locally and configures 127.0.0.1:1443 through Telegram's normal proxy API. Telegram itself does not need to know how the external WebSocket transport is implemented.

02 / branding

UNOFFICIAL FORK

Distinct name, icon, package and signing key.

Telegram's published requirements ask third-party apps not to use the standard Telegram logo and to avoid presenting themselves as the official app. Telegram-WSP therefore uses its own branding and explicitly identifies itself as unofficial.

Telegram requirements ↗

> implemented

Core capabilities

The current MVP focuses on the integrated proxy path, reproducible Telegram updates, release integrity and keeping the fork maintainable.

01WSP

Built-in TgWsProxy

No separate proxy application is required for the normal Telegram-WSP flow.

02LOCAL

Local MTProto listener

The embedded runtime listens on 127.0.0.1:1443 and is connected through Telegram's existing proxy API.

03DIFF

Small upstream diff

The overlay is intentionally narrow to reduce merge conflicts when Telegram publishes a new Android version.

04REL

Automated signed releases

GitHub Actions builds the full APK, signs it with the persistent project key and publishes release metadata and corresponding source.

05UPD

Verified app updates

The client checks GitHub Releases and validates SHA-256, package ID and signing certificate before handing the APK to Android.

06SYNC

Telegram upstream sync

A scheduled workflow checks DrKLO/Telegram daily and releases a new WSP build only after the overlay and CI gates succeed.

$ architecture

Integration boundary

Telegram remains the application and networking layer. The custom transport is isolated behind its localhost proxy endpoint.

01 / clientTelegram-WSPTelegram Android + small overlay
02 / localhost127.0.0.1:1443Telegram proxy API boundary
03 / transporttgwsproxy-corecf_proxy_ws · direct_ws · cf_worker_ws · tcp_fallback

> automation

Telegram updates become WSP releases automatically

The pipeline separates upstream detection from user updates so an incompatible Telegram version is never treated as a valid WSP release merely because it exists upstream.

UPSTREAM → WSP

Daily compatibility gate

DrKLO/Telegramdaily check
config/upstream.jsonpinned commit
Overlay reproductionclean upstream
CI gatesrequired
GitHub Releaseonly after success

WSP → DEVICE

VERIFIED UPDATE

The installed app follows Telegram-WSP releases.

The updater reads latest.json, checks that the new versionCode is newer, downloads the APK and verifies its digest, package ID and signing certificate. Android still requires the user to confirm installation.

Upstream workflow ↗

> provenance

Proxy runtime lineage

The embedded core was extracted from the maintained Android fork, which itself descends from amurcanov's Android wrapper and Flowseal's original TgWsProxy runtime.

originFlowseal/tg-ws-proxyoriginal WebSocket runtime
android lineageamurcanov → Regstar2tg-ws-proxy-android forks
embedded coreRegstar2/tgwsproxy-corereusable Android/native runtime
Telegram-WSP icon

$ current_release

Telegram-WSP v12.10.1-wsp.1

Android 5.0+ · unofficial fork · built and distributed through GitHub Releases.