Hotline.Config (Hotline v0.2.1)

Copy Markdown View Source

Cascading configuration resolution.

Resolution order (first non-nil wins):

  1. Explicit options passed to functions
  2. Application environment (config :hotline, ...)
  3. System environment variables
  4. Defaults

Summary

Functions

Resolve the base URL for the Telegram API.

Resolve a config key using cascading resolution.

Resolve the bot token. Raises if not configured.

Functions

base_url(opts \\ [])

Resolve the base URL for the Telegram API.

resolve(key, opts \\ [])

Resolve a config key using cascading resolution.

token!(opts \\ [])

Resolve the bot token. Raises if not configured.