View Source Telegex.Polling.GenHandler behaviour (Telegex v1.8.0)

Generate your polling handler, which includes a supervisor with poller and consumer children.

Summary

Callbacks

@callback on_boot() :: Telegex.Polling.Config.t()
@callback on_failure(
  update :: Telegex.Type.Update.t(),
  {e :: any(), stacktrace :: any()}
) :: no_return()
@callback on_init(init_arg :: map()) :: :ok
@callback on_update(update :: Telegex.Type.Update.t()) :: :ok | Telegex.Chain.result()

Functions