Telegram Suite for Mac
A native SwiftUI Mac app bundling a standalone Apple Silicon Python runtime to archive and sync large study channels with resumable parallel transfers and SQLite delivery verification.
┌────────────────┐ ┌────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │ UI1 · SWIFTUI │◀─▶│ IPC1 · WORKER │──▶│ U1 · TRANSFERS │──▶│ DB1 · SQLITE │ │ Menu-Bar App │ │ Bundled Python │ │ SHA-256 Chunks │ │ Verified Ledger │ └────────────────┘ └────────────────┘ └─────────────────┘ └─────────────────┘
Why I built it
Long study-channel backups expose every flaw in a quick terminal script: closing a tab aborts a multi-gigabyte download, a Homebrew upgrade breaks Python packages, and a brief Wi-Fi drop leaves ambiguous half-sent messages. I packaged the workflow into a self-contained macOS menu-bar app built to survive interruptions without duplicating posts.
How it works
- Self-Contained Mac App: Built natively in SwiftUI rather than an Electron wrapper, with a build pipeline that embeds a relocatable Apple Silicon Python runtime directly inside the
.appbundle so system Python updates never break it. - Menu-Bar Runner & Safe Shutdown: Closing the main window keeps transfers running quietly in the macOS menu bar. Quitting signals active workers to pause at a safe checkpoint before terminating, completing shutdown in 1.25–1.53 seconds.
- SQLite Delivery Ledger & 16-Chunk Transfers: Every post transitions through a local SQLite state machine. When a network timeout leaves delivery uncertain, the worker inspects destination history before retrying instead of blindly re-sending, while large media files stream in parallel SHA-256 verified chunks.
What I tested & current scope
The engine passes 56 automated backend tests alongside macOS app lifecycle checks confirming sub-1.6-second shutdowns even immediately after launch. In an end-to-end run, it archived and synced 536 posts without duplicates in ~98 seconds including Telegram rate-limit pauses (all personal channel IDs and sessions remain strictly private).
It is a locally signed personal Apple Silicon build rather than an App Store-notarized public release.
Stack & parts