DEV Community

Фёдор
Фёдор

Posted on

I built an interactive Swagger explorer for Telegram’s MTProto API

When I’m building a Telegram integration, I want to answer three questions quickly. Which method do I need? What arguments does it take? What does Telegram actually return?

I built MTProto Swagger to explore all three in one place. You can search the Telegram Client API, inspect request and response types, and look up documented RPC errors. Connect your own Telegram session to run a method directly from the browser.

Browse the interactive documentation

The first GIF shows how to find users.getUsers, inspect its request fields, and open an example response without connecting a Telegram session.

Searching the catalog and inspecting the request fields and example response for users.getUsers

Run a live request

Here’s a live call to help.getConfig. The GIF shows me clicking Run request and the response panel displaying the JSON Telegram returned.

Running help.getConfig and receiving a live Telegram response

The catalog is generated from Telegram’s TL schema and shows the layer used by the deployed build. You can browse it without signing in and download the OpenAPI JSON in 15 languages.

Documentation and downloads

If you’ve worked with MTProto, I’d love to know which method you’d try first and what you’d want its page to show.

Top comments (0)