Telegram Database Library (TDLib) haskell bindings example. Examples in other languages can be found here
This example considers prebuilt dynamic libtdjson.[so|dylib|dll]
in lib
folder.
-
Build tdlib or get precompiled binaries.
-
stack ghci --ghci-options -ltdjson
This may be useful: https://github.com/Bannerets/tdlib-binaries
The copy of build instructions (they are a bit different) can be also found here: https://github.com/tdlib/td#building