Telegex.Plug.Presets.Caller behaviour (Telegex.Plug v0.3.0) View Source

Callback processing plug-in.

Link to this section Summary

Types

Match results.

Callbacks

Handle query callbacks.

Match query callback data.

Link to this section Types

Specs

match_result() :: :match | :nomatch

Match results.

Link to this section Callbacks

Link to this callback

handle(callback_query, state)

View Source

Specs

handle(
  callback_query :: Telegex.Model.CallbackQuery.t(),
  state :: Telegex.Plug.state()
) :: Telegex.Plug.stateless()

Handle query callbacks.

Specs

match(data :: String.t()) :: match_result()

Match query callback data.

This function can be automatically generated by use this module.