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

Swiftgram/tl2swift

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Telegram TDLib specification parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%