View Source Telegex.Hook.Handler behaviour (Telegex v1.0.0-rc.7)

Generate your webhook handler, which includes a supervisor with a Plug-based child.

Link to this section Summary

Link to this section Types

@type handle_result() :: :ok | :error | map()

Link to this section Callbacks

@callback on_boot() :: Telegex.Hook.Config.t()
@callback on_update(Telegex.Type.Update.t()) :: handle_result()