Botlead.Bot.Behaviour behaviour
(botlead v0.3.1)
Callback which require implementation by custom bot servers.
Summary
Module to use for low-level operations on chat platform.
Module to use for client connections to this bot.
Check if user was registered for the related chat_id.
Callback for handling messages from unknown clients.
Callbacks
@callback adapter_module() :: module()
Module to use for low-level operations on chat platform.
@callback client_module() :: module()
Module to use for client connections to this bot.
Check if user was registered for the related chat_id.
@callback process_message_from_the_new_user(String.t(), map()) ::
{:ok, any()} | {:error, any()}
Callback for handling messages from unknown clients.