TDLib – Build Your Own Telegram

Telegram offers developers more than just the Bot API. Since day one, we've also had a free and open Telegram API that allows anyone to create their own messaging apps operating in the Telegram cloud. These apps openly compete with the official ones and some of them have now reached more than 10 million downloads on Google Play.

Users of these alternative clients can communicate with anyone on Telegram, but the apps often offer experimental, highly specialized or locally flavored features. Today we are introducing a new tool for third-party developers that will make it even easier to build fast, secure and feature-rich Telegram apps on our platform.

Introducing TDLib

Meet TDLib – the Telegram Database Library. TDLib takes care of all network implementation details, encryption and local data storage, so that developers can dedicate more time to design, responsive interfaces and beautiful animations.

Universally useful

TDLib supports all Telegram features and makes developing Telegram apps a breeze on any platform. It can be used on Android, iOS, Windows, macOS, Linux and virtually any other system. The library is compatible with any programming language that can execute C functions; it also has native bindings to Java and C#.

Open and well-documented

All TDLib API methods and public interfaces are fully documented. The code is, of course, completely open and available on GitHub.

Secure and reliable

TDLib will remain stable on slow and unreliable Internet connections and guarantees that all updates will be delivered in the correct order. All local data is encrypted using a user-provided encryption key.

Optimized for performance

The library is fully asynchronous and optimized for high performance. We use TDLib in the Telegram Bot API, where each TDLib instance handles more than 18,000 active bots simultaneously.

Battle-tested

Our new Android X client is an example of what can be done with TDLib. Using TDLib, it took the developer of the app approximately one year to reproduce all the major features of Telegram for Android – and add plenty of his own.


Let's see what else TDLib will help bring to the Telegram ecosystem this year.

January 31, 2018,
The Telegram Team


P.S. Today, we're also introducing Telegram X for Android, a new official app.
Check out the announcement here »

Другие новости

Мини-приложения 2.0: полноэкранный режим, иконки на главном экране, геопозиция и ещё 10 функций

Сегодня мы запускаем крупнейшее обновление в истории мини-приложений. Для них теперь доступны…
17 ноя. 2024

Улучшения для видеозаписей и многое другое

В сегодняшнем обновлении – ускоренная загрузка, улучшенное качество и обновлённое управление скоростью при просмотре видео, время последнего…
31 окт. 2024

Подарки, платформа для отправки кодов и многое другое

Теперь пользователи могут отправлять подарки друзьям. Получатель сможет добавить подарок в свой профиль или превратить его в звёзды.
5 окт. 2024

Звёздные розыгрыши и другие нововведения

С сегодняшнего дня группы и каналы могут раздавать Звёзды Telegram в качестве призов в розыгрышах. Кроме того, в браузере Telegram теперь можно открыть любую статью в режиме быстрого…
6 сен. 2024