botlead v0.1.1 Botlead.Bot.Behaviour behaviour

Callback which require implementation by custom bot servers.

Link to this section Summary

Callbacks

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

Link to this section Callbacks

Link to this callback

adapter_module()
adapter_module() :: module()

Module to use for low-level operations on chat platform.

Link to this callback

client_module()
client_module() :: module()

Module to use for client connections to this bot.

Link to this callback

is_registered?(arg0)
is_registered?(String.t()) :: boolean()

Check if user was registered for the related chat_id.

Link to this callback

process_message_from_the_new_user(arg0, map)
process_message_from_the_new_user(String.t(), map()) ::
  {:ok, any()} | {:error, any()}

Callback for handling messages from unknown clients.