MelloGram

MelloGram

A customisable Telegram client for Windows, Linux and Android (iOS and macOS from the same code), written in Rust. MelloGram brings the client-mod experience popularised by Vencord — plugin manager, themes, QuickCSS, backup & restore — to Telegram, as a first-class client instead of a patch.

Unofficial. Not affiliated with Telegram. You sign in with your own API credentials from https://my.telegram.org.

What’s in 0.1

Customization platform

Vencord-style core

See docs/CREDENTIALS.md for API ID/hash setup.

See docs/FEATURES.md for the Vencord → MelloGram map and docs/PLATFORM.md for the full customization-platform spec status.

Architecture

mellogram/
├── crates/
│   ├── mellogram-core       plugin trait + manager, settings, themes (no network, no UI)
│   ├── mellogram-plugins    built-in plugins (Rust) + their UI halves (ui/*.js)
│   └── mellogram-telegram   Telegram backend on grammers (pure-Rust MTProto)
├── app/
│   ├── src-tauri            desktop shell: commands, event pump, bundling
│   └── ui                   HTML/CSS/JS front end (no build step)
├── themes/                  bundled example themes
├── services/
│   └── melloid-public       Cloudflare Worker, D1 profile API and public pages
└── docs/                    features, plugin API, theming, roadmap

Building

Prerequisites: Rust 1.80+, and the Tauri system dependencies.

Linux (Debian/Ubuntu):

sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev librsvg2-dev libayatana-appindicator3-dev patchelf

Windows: WebView2 (preinstalled on Windows 10/11) and the MSVC build tools.

Then, from mellogram/:

cargo install tauri-cli --version "^2" --locked
cd app/src-tauri && cargo tauri dev

Release installers (.deb, .rpm, .AppImage on Linux; .msi and NSIS .exe on Windows):

cd app/src-tauri && cargo tauri build

Windows installers: on Windows, cargo tauri build produces an NSIS .exe (per-user or all-users install, Start-menu entry, uninstaller, WebView2 bootstrapper embedded) and a WiX .msi for managed deployment. From Linux you can cross-build the .exe installer with MinGW:

sudo apt install mingw-w64 nsis && rustup target add x86_64-pc-windows-gnu
cd app/src-tauri && cargo tauri build --target x86_64-pc-windows-gnu --bundles nsis

Android (needs the Android SDK + NDK and the Android Rust targets):

cd app/src-tauri && cargo tauri android init && cargo tauri android build --apk

Tests:

cargo test --workspace --exclude mellogram

CI (.github/workflows/mellogram.yml) runs the tests, then builds Linux packages, Windows .exe + .msi installers, an Android APK/AAB, and an iOS compile check, uploading installers as artifacts.

If a plugin or theme ever breaks the UI, start in safe mode (--safe-mode or MELLOGRAM_SAFE_MODE=1, or from the banner MelloGram shows after an unclean exit).

First run

  1. Create an app at https://my.telegram.org → API development tools.
  2. Paste the API ID and hash into MelloGram.
  3. Sign in with your phone number, the code Telegram sends, and your 2FA password if you have one.

Data lives in the per-user config directory (%APPDATA%\app.mellogram.desktop on Windows, ~/.config/app.mellogram.desktop on Linux): settings.json, telegram.session (keep it private — it is your login) and themes/.

License

GPL-3.0-or-later. MelloGram is an independent implementation; it contains no Vencord or Telegram Desktop code. “# MelloGram”