https://github.com/bhftbootcamp/libtdjson.jl
Julia wrapper for the libtdjson library
https://github.com/bhftbootcamp/libtdjson.jl
libtdjson tdlib telegram-api
Last synced: 5 months ago
JSON representation
Julia wrapper for the libtdjson library
- Host: GitHub
- URL: https://github.com/bhftbootcamp/libtdjson.jl
- Owner: bhftbootcamp
- License: mit
- Created: 2025-05-14T10:52:37.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-09-09T10:57:00.000Z (9 months ago)
- Last Synced: 2025-10-22T10:39:53.892Z (8 months ago)
- Topics: libtdjson, tdlib, telegram-api
- Language: Julia
- Homepage:
- Size: 216 KB
- Stars: 8
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# LibTDJSON.jl
[](https://bhftbootcamp.github.io/LibTDJSON.jl/stable/)
[](https://bhftbootcamp.github.io/LibTDJSON.jl/dev/)
[](https://github.com/bhftbootcamp/LibTDJSON.jl/actions/workflows/Coverage.yml?query=branch%3Amaster)
[](https://codecov.io/gh/bhftbootcamp/LibTDJSON.jl)
[](https://github.com/bhftbootcamp/Green)
Wrapper for TDLib’s C JSON [interface](https://core.telegram.org/tdlib/docs/td__json__client_8h.html) for building Telegram clients in Julia.
## Installation
If you haven't installed our [local registry](https://github.com/bhftbootcamp/Green) yet, do that first:
```
] registry add https://github.com//Green.git
```
To install LibTDJSON, simply use the Julia package manager:
```julia
] add LibTDJSON
```
## Usage
General pattern of usage
```julia
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](https://github.com/tdlib/td) – Official library repository.
- [TDLib_jll.jl](https://github.com/JuliaBinaryWrappers/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.