ExGram.Dispatcher (ex_gram v0.33.0) View Source

Named process that receive the updates, apply the middlewares for the bot and call the bot's handler

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section Types

Specs

t() :: %ExGram.Dispatcher{
  bot_info: ExGram.Model.User.t() | nil,
  commands: list(),
  dispatcher_name: atom(),
  error_handler: function(),
  handler: function(),
  middlewares: list(),
  name: atom(),
  regex: list()
}

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for GenServer.init/1.