Botlead.Bot.Behaviour behaviour (botlead v0.2.4)

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()

Specs

adapter_module() :: module()

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

Link to this callback

client_module()

Specs

client_module() :: module()

Module to use for client connections to this bot.

Link to this callback

is_registered?(t)

Specs

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(t, map)

Specs

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

Callback for handling messages from unknown clients.