Botlead.Client.Supervisor (botlead v0.2.4)

Supervisor to keep track of the initialized client sessions.

Link to this section Summary

Link to this section Functions

Link to this function

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

Callback implementation for DynamicSupervisor.init/1.

Link to this function

remove_client(bot_server, pid, chat_id)

Specs

remove_client(atom() | pid(), atom() | pid(), String.t()) :: :ok | :error
Link to this function

start_client(client_module, bot_server, chat_id, opts \\ [])

Specs

start_client(module(), atom() | pid(), String.t(), Keyword.t()) ::
  {:ok, pid()} | :error
Link to this function

start_link(opts)

Specs

start_link(Keyword.t()) :: {:ok, pid()}