ExGram.Middleware behaviour (ex_gram v0.27.0) View Source

Helper to make it easier to create middlewares

Link to this section Summary

Link to this section Types

Specs

opts() ::
  binary()
  | tuple()
  | atom()
  | integer()
  | float()
  | [opts()]
  | %{required(opts()) => opts()}

Link to this section Functions

Link to this section Callbacks

Specs

call(ExGram.Cnt.t(), opts()) :: ExGram.Cnt.t()

Specs

init(opts()) :: opts()