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

Copy Markdown View Source

Typed options for Telegram send_message/3.

Summary

Functions

Builds typed send options from keyword, map, or struct input.

Builds Telegram API payload options for sendMessage.

Returns the Zoi schema for send options.

Builds transport-level options consumed by ExGramClient.

Types

t()

@type t() :: %Jido.Chat.Telegram.SendOptions{
  check_params: nil | boolean(),
  debug: nil | boolean(),
  disable_notification: nil | boolean(),
  disable_web_page_preview: nil | boolean(),
  entities: nil | any(),
  ex_gram_adapter: nil | any(),
  ex_gram_module: nil | any(),
  link_preview_options: nil | any(),
  parse_mode: nil | binary(),
  reply_markup: nil | any(),
  reply_to_message_id: nil | any(),
  thread_id: nil | any(),
  token: nil | binary(),
  transport: any()
}

Functions

new(opts)

Builds typed send options from keyword, map, or struct input.

payload_opts(opts)

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

Builds Telegram API payload options for sendMessage.

schema()

Returns the Zoi schema for send options.

transport_opts(opts)

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

Builds transport-level options consumed by ExGramClient.