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

Copy Markdown View Source

Typed options for Telegram fetch_metadata/2.

Summary

Functions

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

Returns the Zoi schema for metadata options.

Builds transport-level options consumed by ExGramClient.

Types

t()

@type t() :: %Jido.Chat.Telegram.MetadataOptions{
  check_params: nil | boolean(),
  debug: nil | boolean(),
  ex_gram_adapter: nil | any(),
  ex_gram_module: nil | any(),
  token: nil | binary(),
  transport: any()
}

Functions

new(opts)

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

schema()

Returns the Zoi schema for metadata options.

transport_opts(opts)

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

Builds transport-level options consumed by ExGramClient.