An AngularJS app to search and view the Telegram API TL-schema in a beautiful way.
- Search and view TL-schema constructors, types, and methods
- Community-driven documentation
- Easy testing of constructors and methods with the playground
- Easy access to
schema.json
andschema.tl
- Always up-to-date
Search is blazing fast since everything is local.
You can use the playground on constructor and method pages to easily test the API with Telegram for Devs.
There's a GitHub Action that checks for schema updates every hour and submits a PR updating the schema in this repo. Neat!
If you find that the schema is out-of-date (check here), you can submit a PR if I don't update it in a timely manner (I don't monitor it 24/7!):
Update theSCHEMA_GLOBAL
andLAYER_NUMBER
injs/schema.js
.Replaceresources/schema.json
with the current schema in JSON format (prettify it, pretty please).Replaceresources/schema.tl
with the current schema in Type-Language format.Update the layer number inindex.html
.
That's it. Submit your PR and I'll accept it ASAP.
Anyone in the community can add documentation to constructors or methods. To do so, click the "Help document this method" button, make your changes, and submit a pull request. Simple as that!