LibTDJSON.jl

Wrapper for TDLib’s C JSON interface for building Telegram clients in Julia.

Installation

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

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.