TDLib, precompiled.
All 4 ABIs. Zero NDK.
Signed AARs built deterministically in GitHub Actions. Drop one Gradle coordinate into your Android app and ship.
// two lines and you have Telegram's native core dependencies { implementation("io.github.tdlib-android:core:0.1.3") implementation("io.github.tdlib-android:ktx:0.1.3") }
# gradle/libs.versions.toml [versions] tdlib = "0.1.3" [libraries] tdlib-core = { module = "io.github.tdlib-android:core", version.ref = "tdlib" } tdlib-ktx = { module = "io.github.tdlib-android:ktx", version.ref = "tdlib" }
val client = TdClient( filesDir = context.filesDir.absolutePath + "/tdlib", apiId = BuildConfig.TELEGRAM_API_ID, apiHash = BuildConfig.TELEGRAM_API_HASH ) client.init() CoroutineScope(Dispatchers.IO).launch { client.updates.collect { /* handle UpdateNewMessage */ } }
The pipeline is the product.
Nothing ships from a developer laptop. Every release passes through the same four deterministic gates before a human ever clicks merge.
A scheduled workflow watches TDLib master daily at 06:00 UTC and triggers on version or TL schema changes.
All four native architectures compile in parallel with a pinned NDK r27c and 16 KB page alignment.
ELF headers are validated with readelf -h, never by file size. Partial ABI sets are rejected immediately.
An automated PR carries the full diff plus SHA-256 checksums. Merging publishes signed AARs straight to Maven Central.
What’s in the box
:core tdjni + TdApi, packaged
Four ABIs of libtdjni.so with TdApi.java, Client.java, and R8 consumer keep rules shipped inside the AAR itself.
:ktx Coroutines wrapper
Updates as Flow<TdApi.Update>. Thin bridge, ~150 lines, zero application-layer bloat. Setup →
ci Upstream auto-update
Version bumps land as review-ready PRs with diff and checksums. You never chase TDLib commits.
compat Android 15 ready
16 KB page alignment verified per build, forward compatible with Pixel 8/9 and target SDK 36. Architecture →
:sample Minimal working app
Clone, open, run. The shortest path from zero to a connected TDLib client. Source ↗
Why not build it yourself?
Compiling TDLib once takes an hour of NDK setup, 16 GB RAM, and four toolchains. This repo exists so you never do.
| Feature | tdlib-android | DIY compile | Self-hosted CI |
|---|---|---|---|
| All 4 ABIs | ✓ every release | manual per-arch | ✓ |
| Local NDK needed | never | yes, 4 toolchains | docker only |
| 16KB page alignment | verified in CI | your job | your job |
| Upstream tracking | daily, 06:00 UTC | manual | manual |
| Binary verification | readelf -h gate | none | none |
| Distribution | Maven Central | manual | manual |
28,500+ downloads across Maven Central & GitHub
Updated daily by automated metrics CI — zero client-side tracking.
Stop compiling Telegram. Start using it.
Current release 0.1.3 (TDLib 1.8.71), signed and checksummed on Maven Central under io.github.tdlib-android:core and io.github.tdlib-android:ktx.