Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.77 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.77 KB

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>]

  • <path_to_definition> - path to json file
  • <dest_folder> - destination folder for java-files and destination jar file
  • <package> - overriding java package name. Default: org.telegram.api

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