Nadia. Client
(nadia v1.6.1)
View Source
Immutable Telegram Bot API client configuration.
file_mode defaults to :remote. Set it to :local only for a trusted
local Bot API server that returns absolute paths accessible in Nadia's
filesystem namespace.
Summary
Functions
Builds the legacy default client from application config.
Builds the legacy default client from top-level application config.
Builds a named client from config :nadia, bots: [...].
Builds a client from explicit options.
Types
@type api_environment() :: :production | :test
@type file_mode() :: :remote | :local
@type t() :: %Nadia.Client{ api_environment: api_environment(), base_url: binary(), file_base_url: binary(), file_mode: file_mode(), http_client: module(), proxy: term(), proxy_auth: term(), recv_timeout: non_neg_integer(), token: binary() | nil }