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

Callback which require implementation by custom bot servers.

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.

Callbacks

adapter_module()

@callback adapter_module() :: module()

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

client_module()

@callback client_module() :: module()

Module to use for client connections to this bot.

is_registered?(t)

@callback is_registered?(String.t()) :: boolean()

Check if user was registered for the related chat_id.

process_message_from_the_new_user(t, map)

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

Callback for handling messages from unknown clients.