Skip to content

tdlib-build provides prebuilt TDLib binaries for all platforms and a generated JSON file describing the full TDLib API (types, functions, updates, and classes) for code generation and tooling

License

Notifications You must be signed in to change notification settings

FallenProjects/tdlib-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated TDLib Build & JSON Generator 🚀

Build Status Go Version License

An automated workflow to build TDLib (Telegram Database Library) and generate the essential tdlib.json schema file for use in various wrappers and bots.

Features ✨

  • Automatic tdlib.json Generation:
    • Fetches the latest td_api.tl schema.
    • Parses it into a JSON format compatible with tdlib-json wrappers.
  • Cross-Platform Builds:
    • 🐧 Linux (x86_64) - Built with cmake, gperf, zlib, openssl.
    • 🍎 macOS (Universal/x86_64) - Built with brew dependencies.
    • 🪟 Windows (x64) - Built with vcpkg dependencies.
  • 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.

Project Structure 📂

.
├── .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

About

tdlib-build provides prebuilt TDLib binaries for all platforms and a generated JSON file describing the full TDLib API (types, functions, updates, and classes) for code generation and tooling

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages