Skip to content
This repository has been archived by the owner on Jul 9, 2022. It is now read-only.

Latest commit

 

History

History
24 lines (17 loc) · 824 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 824 Bytes

tl2swift

Project archived and now it's a part of TDLibKit

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