mejgun / haskell-tdlib

TDLib (Telegram Database library) JSON bindings for Haskell

Home Page:https://haskell-tdlib.netlify.app

Repository from Github https://github.commejgun/haskell-tdlibRepository from Github https://github.commejgun/haskell-tdlib

haskell-tdlib

Telegram library haskell bindings. Examples in other languages can be found here

This lib considers prebuilt tdlib dynamic libtdjson.[so|dylib|dll] in lib folder.

Use (stack)

Add dependency to stack.yaml file (do not copy this commit hash)

extra-deps:
- git: https://github.com/mejgun/haskell-tdlib.git
  commit: a4bd75bd7621a2b0873688dbc24cfaf26c1f14ba

You may need to specify lib path before running app

  • Mac OS: export DYLD_LIBRARY_PATH=lib
  • Linux: LD_LIBRARY_PATH=lib

Usage example

queueBot

Docs

  • Online
  • Offline - git clone https://github.com/mejgun/haskell-tdlib-docs

Notes

Let me know if there is an easier way to make something.

README and FFI code was partially copied from Nufeen/tglib-haskell-bindings

About

TDLib (Telegram Database library) JSON bindings for Haskell

https://haskell-tdlib.netlify.app

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 100.0%