Public APIs
Telegram MTProto favicon

Telegram MTProto

Social

Read and write Telegram data.

Telegram MTProto's website screenshot

About Telegram MTProto

The Telegram API (MTProto) is the low-level protocol that lets developers build fully customized Telegram client applications, distinct from the simpler Bot API. It is open to any developer who registers an application with Telegram, and covers areas such as user authorization, two-factor authentication, QR code and passkey login, error handling, connecting to data centers, handling updates and push notifications, forums, channel statistics, file upload/download, pagination, and end-to-end-encrypted one-to-one and group calls.

Documentation also covers secret chats with end-to-end encryption, security guidelines, and perfect forward secrecy, along with client optimization guidance and a full API method list with a TL-schema reference in text and JSON form. For developers who do not want to implement the protocol from scratch, Telegram also offers TDLib, an open-source library that handles network implementation, encryption, and local data storage across platforms including Android, iOS, Windows, macOS, and Linux, and is compatible with a wide range of programming languages.

This API is intended for developers building custom Telegram clients rather than simple bots or SMS-replacement integrations, which are served by Telegram's separate Bot API and Gateway API respectively. Use of the Telegram API and TDLib is free of charge.

Key features

  • Build fully customized Telegram clients via the low-level MTProto Telegram API
  • End-to-end encrypted secret chats, one-to-one calls, and group calls with Perfect Forward Secrecy
  • Gateway API sends authorization codes through Telegram instead of SMS
  • Bot API for building bots with support for inline queries, buttons, mini apps, and payments
  • Detailed channel and supergroup statistics along with message view and read metrics

Frequently asked questions

Is the Telegram API free to use?

Yes, both the Telegram API and Bot API are free of charge, and the Gateway API is free to test.

What platforms does TDLib support?

TDLib can be used on Android, iOS, Windows, macOS, Linux, and virtually any other system, and is compatible with virtually any programming language.

Do I need to understand the MTProto protocol to build a bot?

No, the Bot API uses an intermediary server that handles all MTProto encryption and communication, so bots communicate via a simple HTTPS interface.

Who is the Telegram API for?

It is aimed at developers who want to build customized Telegram clients, bots, or integrate Telegram messaging into businesses, apps, or websites.

What is the Gateway API used for?

It lets any business, app, or website send authorization codes through Telegram instead of traditional SMS.

Ad
Webz.io News API favicon

Webz.io News API

Webz.io News APIs provide global news data for search, monitoring, analytics, and AI applications, with powerful filters and natural-language search.

Learn more
Ad
SerpApi - Search API favicon

SerpApi - Search API

SerpApi's Search API makes it easy and fast to scrape Google and other search engines.

Learn more

Featured products

  • SerpApi - Search API favicon
  • Webz.io News API favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product