Jido.Chat.Telegram.CallbackAnswerOptions (Jido Chat Telegram v1.0.0)

Copy Markdown View Source

Typed options for Telegram answer_callback_query/2.

Summary

Functions

Builds typed callback answer options from keyword/map/struct input.

Builds Telegram API payload options for answerCallbackQuery.

Returns the Zoi schema for callback answer options.

Builds transport-level options consumed by ExGramClient.

Types

t()

@type t() :: %Jido.Chat.Telegram.CallbackAnswerOptions{
  cache_time: nil | integer(),
  check_params: nil | boolean(),
  debug: nil | boolean(),
  ex_gram_adapter: nil | any(),
  ex_gram_module: nil | any(),
  show_alert: nil | boolean(),
  text: nil | binary(),
  token: nil | binary(),
  transport: any(),
  url: nil | binary()
}

Functions

new(opts)

Builds typed callback answer options from keyword/map/struct input.

payload_opts(opts)

@spec payload_opts(t()) :: map()

Builds Telegram API payload options for answerCallbackQuery.

schema()

Returns the Zoi schema for callback answer options.

transport_opts(opts)

@spec transport_opts(t()) :: keyword()

Builds transport-level options consumed by ExGramClient.