An automated workflow to build TDLib (Telegram Database Library) and generate the essential tdlib.json schema file for use in various wrappers and bots.
- Automatic
tdlib.jsonGeneration:- Fetches the latest
td_api.tlschema. - Parses it into a JSON format compatible with
tdlib-jsonwrappers.
- Fetches the latest
- Cross-Platform Builds:
- 🐧 Linux (x86_64) - Built with
cmake,gperf,zlib,openssl. - 🍎 macOS (Universal/x86_64) - Built with
brewdependencies. - 🪟 Windows (x64) - Built with
vcpkgdependencies.
- 🐧 Linux (x86_64) - Built with
- GitHub Releases Integration:
- Automatically creates a new Release tagged with the TDLib version (e.g.,
v1.8.0). - Uploads compiled shared libraries (
libtdjson.so,libtdjson.dylib,tdjson.dll) as release assets.
- Automatically creates a new Release tagged with the TDLib version (e.g.,
.
├── .github/workflows/
│ └── build-tdlib.yml # The GitHub Action workflow definition
├── scripts/generate/
│ ├── main.go # Entry point for the JSON generator
│ ├── tl_parser.go # TL Schema parser logic
│ └── json_types.go # Go structs for the JSON output
├── tdlib.json # The generated API definition file
├── go.mod # Go module definition
└── README.md # This file
Maintained by AshokShau