Install¶
There is no release build yet. Build Mollygram from source on macOS 12 or later. Release builds will be published on GitHub Releases.
Before you start¶
- Install Xcode and FVM. The repository pins Flutter 3.47.7 in
.fvmrc. - Get an
api_idandapi_hashat my.telegram.org. Mollygram does not ship one. See the FAQ.
Build and run¶
-
Clone the repository with its submodules. QuickJS, the plugin engine, lives in a submodule.
git clone --recurse-submodules https://github.com/mollykitten/mollygram.git cd mollygramIf you cloned without
--recurse-submodules, rungit submodule update --init --recursive. -
Install Flutter and the dependencies.
fvm install fvm flutter pub get -
Copy the example config and fill in your credentials.
cp config/telegram.example.json config/telegram.json{ "TELEGRAM_API_ID": "your api_id", "TELEGRAM_API_HASH": "your api_hash" }config/telegram.jsonis git-ignored. Keep it out of commits. -
Run the app.
cd packages/app fvm flutter run -d macos --dart-define-from-file=../../config/telegram.json
The Xcode build downloads the prebuilt TDLib library (libtdjson) for the version pinned in packages/tdlib/tdlib.json and checks its sha256. You do not build TDLib yourself. To use your own library, set TDJSON_PATH.
Next: Sign in.