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.
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
- Online
- Offline -
git clone https://github.com/mejgun/haskell-tdlib-docs
- There are .hs-boot files because of recursive imports.
- TDLib stored Int64 as string.
- Extra needed to match requests with the corresponding responses
Let me know if there is an easier way to make something.
README and FFI code was partially copied from Nufeen/tglib-haskell-bindings