telegram-s / telegram-tl-old

TL Compiler for Telegram project
MIT License
58 stars 26 forks source link

Java Telegram TL Compiler

Type Language compiler for working with api of Telegram project.

Converts json-representation of TL-scheme to jar with generated classes for serializing and deserializing api messages and methods.

Usage

Download latest version at releases page

Write in console: java -jar tl-builder.jar -in <path_to_definition> [-out <dest_folder>] [-package <package>]

Generating api library

  1. Download latest release version of tl-core library at tl-core releases page, rename jar file to "tl-core.jar" and put to working folder.
  2. Get json-cheme of required api-level at http://core.telegram.org/schema and put it to same working folder.
  3. Run tl-builder on this files
  4. Add compiled tl-api.jar to your project

Prebuilded api libraries

You always could get actual versions of tl-api jars at releases page

More information

Type Language documentation

English: http://core.telegram.org/mtproto/TL

Russian: http://dev.stel.com/mtproto/TL

Telegraph project

http://telegram.org/

Android Client that uses this library

Telegram S

License

Compiler uses MIT License