Skip to content

mejgun/haskell-tdlib

Repository files navigation

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