Botlead.Client.Behaviour behaviour (botlead v0.3.0)
Callback which require implementation by custom bot clients.
Summary
Callbacks
Default state for client session.
Name generator for client session servers.
Callback for handling message delivery, replaces the current state.
Transform new message from bot into connection object. The place to put routing business logic.
Module for message routing.
Types
Callbacks
Default state for client session.
Name generator for client session servers.
@callback message_delivered(delivery_action(), message(), state()) :: state()
Callback for handling message delivery, replaces the current state.
@callback message_to_conn(message(), state(), Keyword.t()) :: GenRouter.Conn.t()
Transform new message from bot into connection object. The place to put routing business logic.
@callback router() :: module()
Module for message routing.