qmetrics.net

TDLib

Cross-platform library for building Telegram clients

TDLib screenshot

TDLib (Telegram Database Library) is a cross-platform client library for Telegram. It handles networking, encryption, and local storage so custom apps can be built from many programming languages.

Overview

TDLib is the Telegram Database Library, a cross-platform library intended for third-party developers who want custom applications on the Telegram platform. It presents a fully functional Telegram client as a library rather than a standalone end-user app.

The library abstracts network details, encryption, and on-device data storage. It is fully asynchronous, with ordered delivery of updates, stability on unreliable connections, and local data encrypted using a user-supplied key. Interfaces include C++, JSON, Java through JNI, and .NET through C++/CLI or C++/CX, with JSON recommended for languages that can call C functions.

Developers integrate TDLib into CMake, Java, .NET, or other stacks via static or JSON bindings. API methods and classes are documented through a machine-readable scheme and generated HTML documentation. JSON interface versions with the same major number are binary compatible across minor releases.

TDLib is the foundation for custom mobile, desktop, and embedded Telegram clients, leaving UI and product logic to the application that embeds the library.

Key features

  • Encrypted local data storage
  • Fully asynchronous API
  • Ordered update delivery
  • JSON, C++, Java, and .NET interfaces
  • Cross-platform operating system support
  • Documented tdapi method scheme
  • Network and encryption handled internally
  • Multi-language bindings via JSON C API

Use cases

  • Custom Telegram client applications
  • Bots and automation using TDLib
  • Embedded Telegram on niche platforms
  • Cross-language Telegram integrations
  • Desktop or mobile messengers on Telegram

Tags

Similar software

OpenIM Server

Developer-oriented instant messaging backend server

OpenIM Server is the backend for embedding chat, groups, and messaging in your apps—not a standalone consumer chat client.

★ 16.8k⟳ 18 days agoApache-2.0

Chat

Federated instant messaging server with multi-platform clients

Tinode is a Go instant messaging stack with Android, iOS, and web clients plus broad gRPC language bindings. It supports chats, channels, calls, and federation-oriented design rather than XMPP.

★ 13.6k⟳ 5 days agoGPL-3.0
Open Source Alternative to:Discord

Synapse

Matrix homeserver for secure real-time messaging

Synapse implements a Matrix homeserver for federated chat and VoIP. Element maintains it as part of the Matrix stack, with standalone install documentation.

★ 4.8k⟳ todayAGPL-3.0

GoWebSocket

Go WebSocket IM server with horizontal scaling

GoWebSocket is a distributed instant-messaging backend using WebSockets, HTTP APIs, gRPC, Redis, and nginx load balancing.

★ 3.1k⟳ 2 months agoApache-2.0

Chat SDK Android

Open-source instant messaging framework for Android

Chat SDK is a featured instant messaging framework for Android that integrates with Firebase or XMPP backends. It supports public rooms, several login styles, and push notifications.

★ 1.6k⟳ 10 months agoGPL-3.0 · open core

Haven

Self-hosted private chat with voice and screen sharing

Haven is a Discord-like chat server you run on your own hardware. Friends join through a browser or apps for text, voice, screen sharing, and encrypted direct messages without a commercial host.

★ 1.2k⟳ 2 days agoAGPL-3.0
Open Source Alternative to:Discord