Skip to content

ankit-chaubey/tdlib-termux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TDLib for Termux (ARM64)

Prebuilt Telegram TDLib for Termux on Android (ARM64 / aarch64).

This build is compiled natively on Termux, linked against Android bionic, and configured with emulated TLS to work correctly on Android.


👤 Credits


🙏 Acknowledgements

Special thanks to levelm (@levelm) for their long‑term maintenance, engineering excellence, and years of outstanding work behind TDLib. This project would not be possible without the sustained effort and technical leadership that shaped TDLib over time.


✅ Build Details

  • TDLib version: 1.8.60
  • Platform: Android (Termux)
  • Architecture: ARM64 (aarch64)
  • C library: bionic
  • Compiler: clang
  • TLS: emulated TLS enabled (-femulated-tls)
  • Linking: dynamic (libtdjson.so)

📦 Included Files

td/
├── include/td/
│   └── telegram headers
└── lib/
    ├── libtdjson.so
    └── libtdjson.so.1.8.60

Static libraries (*.a) are not required for runtime usage.


🔧 Runtime Requirements (Termux)

pkg install openssl zlib libc++

Runtime libraries used:

  • libssl.so.3
  • libcrypto.so.3
  • libz.so.1
  • libc++_shared.so

🚀 Usage

export LD_LIBRARY_PATH=$PWD/td/lib
ldd td/lib/libtdjson.so

There should be no missing dependencies.


🧪 Minimal Test

#include <td/telegram/td_json_client.h>

int main() {
    void *client = td_json_client_create();
    td_json_client_destroy(client);
    return 0;
}

Compile:

clang test.c -Itd/include -Ltd/lib -ltdjson -o test

🏷 Release Tag

v1.8.60-termux

📄 License

TDLib is licensed under the Boost Software License 1.0.


🔗 References

About

TDLib prebuilt for Termux on Android (ARM64)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors