View Source Telegex.Polling.Handler behaviour (Telegex v1.2.0)

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

Link to this section Summary

Link to this section Callbacks

@callback on_boot() :: Telegex.Polling.Config.t()
@callback on_failure(reason :: Telegex.Type.error()) :: no_return()
@callback on_init(init_arg :: map()) :: :ok
@callback on_update(update :: Telegex.Type.Update.t()) :: :ok | Telegex.Chain.result()

Link to this section Functions