$ echo -n "$TELEGRAM_API_TOKEN" > bot.token
$ git clone https://github.com/j0sh/ocaml-gensqlite # The OPAM package is broken...
$ cd ocaml-gensqlite && make && make install && cd .. # Just compile from source yourself, for now
$ oasis setup -setup-update dynamic
$ make
$ ./bot.native
In order to add new commands, you can use the interface provided by Api.Command
.
Your bot module should contain a commands : Api.Command.command list
. For a basic example
of two of these types of commands, see src/bot.ml.
Some (poorly generated) documentation for the Telegram API implementation is provided at the Github project site.
Alternatively, you can just browse through src/api.mli
to view this same information as part of the module signature.