agala v1.0.3 API Reference

Modules

Main framework module. Copy readme from github here

Main worker module

Main gen_server module, which is making polling requests to Telegram API

A lot of super interesting documentation

Broadcast bot handler. Use it to broadcast some information from your bot to chanel

Simple echo handler - returns the incoming message back to the user

Module defines tipes for Telegram messages

Router behaviour specification

Simple router, which defines message author and pass the message directly to separate handler

Direct router creates single handler process and pass all incoming messages to it. It’s the simplest case. It also supervises handler process: if it falls - router will ensure to restart it before passing new incomming messages

Simple router, which defines message author and pass the message directly to separate handler