A native Telegram desktop client in Rust that runs in a few dozen MB of RAM.
Rust talks MTProto directly and draws its own window. No TDLib, no Electron, no WebView, no Qt.
English · Русский
Official desktop clients keep a lot in memory: a big media cache, a whole UI toolkit, sometimes a bundled browser. Oxigram keeps only what is on screen. The network, the database and the window are one small Rust program: the interface is drawn by Slint's software renderer, so there is no browser engine and no GPU driver in memory.
- About 10–30 MB of RAM with the window open (more while a photo or a video is open full-window, back down when it closes). The live figure is always in the window title.
- A ~15 MB executable, installers of about 7 MB.
- Pictures are decoded at the size they are drawn and dropped when you leave the chat; long chats keep only the rows on screen.
|
💬 Chats
|
✉️ Messages
|
|
🖼️ Media
|
🖥️ Desktop
|
Not yet: MTProto proxies, animated (Lottie) stickers, calls, stories, several accounts, recording voice messages, secret chats.
Installers are attached to the releases:
| File | System |
|---|---|
oxigram-windows-x64-…-setup.exe |
Windows 10/11, 64-bit |
oxigram-windows-x86-…-setup.exe |
Windows 10/11, 32-bit |
oxigram-windows-arm64-…-setup.exe |
Windows 11 on ARM |
oxigram-linux-x64-….deb |
Ubuntu 20.04+, Debian 11+, Mint |
oxigram-linux-x64-….AppImage |
other distributions (glibc 2.31+: ALT p10, Fedora 33 and newer) |
oxigram-macos-apple-silicon-….dmg |
Mac with M1/M2/M3/M4 (macOS 11+) |
oxigram-macos-intel-….dmg |
Mac with Intel (macOS 10.13 High Sierra+) |
The builds are not code-signed. On Windows, if SmartScreen warns, choose More info → Run anyway. On macOS, right-click Oxigram → Open the first time.
Oxigram ships without an api_id / api_hash; you bring your own.
- Sign in at https://my.telegram.org → API development tools.
- Create an application (any name) and copy
api_idandapi_hash. - Start Oxigram, paste them, sign in with your phone number.
Where Telegram is blocked, first open Set up proxy on the first screen (the keys can only be checked by connecting): turn on Обход блокировок (WebSocket), which needs no server, or enter a SOCKS5 or HTTP proxy.
The keys and the session are stored only on your computer and are sent nowhere except Telegram's servers.
You need Rust (stable).
git clone https://github.com/Timon2306/oxigram
cd oxigram
cargo run --release -p oxigram-nativeOn Linux install the development packages first (Debian/Ubuntu names):
sudo apt install build-essential pkg-config libxkbcommon-dev libwayland-dev \
libfontconfig1-dev libgtk-3-dev libayatana-appindicator3-dev \
libdbus-1-dev libasound2-dev libssl-dev
# video inside the app: also libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev,
# then build with --features gstreamerInstallers are made with cargo-packager
(cargo install cargo-packager --locked, then cargo packager --release in
native/). The GitHub workflow .github/workflows/release.yml builds all of
them; it only runs when started by hand.
Tests and project layout
cargo test -p oxigram-core -p oxigram-native # unit tests
cargo test -- --ignored # also talks to Telegram's serverscore/src/ the backend (no UI inside)
tg.rs connection lifecycle, login, proxy
chats.rs dialogs, history, profiles, folders, media downloads
actions.rs pin, archive, react, edit, forward, delete, send files,
search, contacts
updates.rs live updates, notifications, the event stream
proxy.rs proxy settings and the connection check
proxy_http.rs HTTP CONNECT through a local SOCKS5 bridge
proxy_ws.rs WebSocket bypass (Telegram Web's wss addresses)
markup.rs **bold** / __italic__ shortcuts to message entities
media.rs what an attachment is and which thumbnail to fetch
store/ local SQLite: the session and the chat cache
mem.rs process memory measurement (window title)
native/ the app: Slint window and its Rust side
ui/app.slint the whole interface
src/main.rs start-up, chat list, history
src/pictures.rs pictures, albums, the viewer
src/video/ video playback per system (Media Foundation,
AVFoundation, GStreamer)
src/audio.rs voice messages and music
src/sending.rs sending files
src/… reactions, search, folders, tray, notifications, proxy…
vendor/ Slint's software renderer with colour emoji
Up to version 0.1 Oxigram drew its window with a WebView (Tauri + Svelte); since 0.2 it is fully native.
The interface is in English, Russian and Ukrainian; it follows the system's language, or the choice in Settings → General → Language, and switches at once.
To add a language:
- Copy
native/translations/ru/LC_MESSAGES/oxigram-native.potonative/translations/<code>/LC_MESSAGES/oxigram-native.po(<code>is the language's code:de,pl,kk…). - Set
Language:andPlural-Forms:in its header (see the gettext list), then put your translation in everymsgstr(keep{}and{n}). Poedit opens the file as it is. - Add the language to
LANGUAGESandresolveinnative/src/i18n.rsand the plural rule toplural_index. cargo test -p oxigram-native i18nchecks that every text is translated; then open a pull request.
Oxigram is an unofficial client built on the Telegram API and is not affiliated with Telegram. It follows the API Terms of Service: no "ghost mode", no hidden read receipts or typing status, no keeping of deleted or self-destructing messages.
MIT © Timon2306
Use, change and share Oxigram freely, including in your own projects. The one condition: keep the copyright notice from LICENSE, crediting Timon2306, in every copy and every project based on this code.
The interface is built with Slint under its Royalty-free license (Slint's
software renderer and core in native/vendor/ carry the same licenses; see the
files there).
Colour country flags come from the "Twemoji Country Flags" font
(country-flag-emoji-polyfill,
MIT) with art from Twemoji under
CC-BY 4.0; see
native/fonts/OxigramFlags-LICENSE.md. Open Sans is under the SIL OFL.