Skip to content

Latest commit

 

History

History

tl2swift

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

tl2swift

This project designated for parsing Telegram Type Language (.tl) specification for TDLib and generating Swift code.
tl2swift generates swift structures, enums and methods for working with TDLib json interface. See example in project tdlib-swift

Usage

Download TL-scheme

$ curl https://raw.githubusercontent.com/tdlib/td/master/td/generate/scheme/td_api.tl -o td_api.tl

Generate sources

$ swift run tl2swift td_api.tl ./output/

[Optional] Generate sourcea and Set TDLib version & commit in header comment

$ swift run tl2swift td_api.tl ./output/ 1.7.5 73d8fb4