Jido.Chat.Telegram.EditOptions (Jido Chat Telegram v1.2.1)

Copy Markdown View Source

Typed options for Telegram edit_message/4.

Summary

Functions

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

Builds Telegram API payload options for editMessageText.

Builds Telegram API payload options for a rich editMessageText.

Returns the Zoi schema for edit options.

Builds transport-level options consumed by ExGramClient.

Types

t()

@type t() :: %Jido.Chat.Telegram.EditOptions{
  adapter_opts: nil | nil | any(),
  check_params: nil | nil | boolean(),
  debug: nil | nil | boolean(),
  disable_web_page_preview: nil | nil | boolean(),
  entities: nil | nil | any(),
  ex_gram_adapter: nil | nil | any(),
  ex_gram_module: nil | nil | any(),
  link_preview_options: nil | nil | any(),
  parse_mode: nil | nil | binary(),
  reply_markup: nil | nil | any(),
  rich_format: nil | nil | :markdown | :html,
  token: nil | nil | binary(),
  transport: any(),
  url: nil | nil | binary()
}

Functions

new(opts)

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

payload_opts(opts)

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

Builds Telegram API payload options for editMessageText.

rich_payload_opts(opts)

@spec rich_payload_opts(t()) :: map()

Builds Telegram API payload options for a rich editMessageText.

Rich messages carry their own formatting inside rich_message, so parse_mode, entities, and the link-preview options are not valid here and are dropped.

schema()

Returns the Zoi schema for edit options.

transport_opts(opts)

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

Builds transport-level options consumed by ExGramClient.