View Source Telegex.Hook.Handler behaviour (Telegex v1.0.0-rc.6)
Generate your webhook handler, which includes a supervisor and a Plug-based child.
Link to this section Summary
Link to this section Types
@type handle_result() :: :ok | map()
Link to this section Callbacks
@callback on_init() :: Telegex.Hook.Config.t()
@callback on_update(Telegex.Type.Update.t()) :: handle_result()