This repository provides the following pre-built files to simplify the development of Java Telegram clients:
tdlib.jarlibtdjni.so
A module-info.class file is added to the generated tdlib.jar file, in order to support Java module system.
Java 21 is used for the build.
Download the files from the latest release.
Install the libtdjni library:
sudo cp libtdjni.so /usr/lib64Install the jar via Maven using the following command:
mvn install:install-file -Dfile=/path/to/tdlib.jar -DgroupId=org.drinkless -DartifactId=tdlib -Dversion=1.8.50 -Dpackaging=jarThen you can include it in your pom.xml and use it as usual:
<dependency>
<groupId>org.drinkless</groupId>
<artifactId>tdlib</artifactId>
<version>1.8.50</version>
</dependency>The Dockerfile uses the instruction from https://tdlib.github.io/td/build.html?language=Java.
All the generated classes, except the example ones, are packed to a jar file.
This repository provides a repackaging of tdlib, that is released with Boost Software License - copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2025.