Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LibTDJSON.jl

Stable Dev Build Status Coverage Registry

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/bhftbootcamp/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

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.

About

Julia wrapper for libtdjson

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages