Skip to content

bhftbootcamp/LibTDJSON.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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//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 the libtdjson library

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages