LibTDJSON.jl
Wrapper for TDLib’s C JSON interface for building Telegram clients in Julia.
Installation
If you haven't installed our local registry yet, do that first:
] registry add https://github.com//Green.git
To install LibTDJSON, simply use the Julia package manager:
] add LibTDJSON
Usage
General pattern of usage
using LibTDJSON
const WAIT_TIMEOUT = 10.0
client_id = td_create_client_id()
while true
event = td_receive(WAIT_TIMEOUT)
if event != C_NULL
# parse the result as a JSON object
end
end
Useful Links
- TDLib – Official library repository.
- TDLib_jll.jl – Julia wrapper for TDLib.
Contributing
Contributions to LibTDJSON are welcome! If you encounter a bug, have a feature request, or would like to contribute code, please open an issue or a pull request on GitHub.