Telegram Schema
TL language specifications and data structures
What is TL?
TL (Type Language) is a formal language used to describe data structures in the Telegram API. It provides a universal way to serialize and deserialize data across different programming languages and platforms.
Core Concepts
- Type definitions for all API methods and constructors
- Binary serialization format for efficient data transmission
- Cross-platform compatibility
- Version-independent schema evolution
Schema Layers
Telegram uses a layered approach to schema versioning. Each layer represents a specific version of the API schema, allowing for backward compatibility and smooth transitions between versions.
Current Layer: The Telegram Schema is continuously updated with new features and improvements. Check the official documentation for the latest layer version.
Using the Schema
The schema is primarily used by developers who are:
- 1
Building custom Telegram clients using TDLib or MTProto
- 2
Implementing Telegram protocol in new programming languages
- 3
Understanding the internal structure of Telegram API calls
Documentation
For complete schema documentation, including all available types, methods, and constructors, visit our developer portal.