View Source Telegex.Global (Telegex v1.8.0)

Global configuration options.

Read global configuration options (in contrast to Telegex.Instance), where these configuration options are directly keyed under :telegex.

Option descriptions

  • api_base_url - The base URL of the Telegram Bot API. Defaults to https://api.telegram.org.
  • caller_adapter - The adapter module for making HTTP requests. Defaults to Finch.
  • hook_adapter - The adapter module for handling webhook requests. Defaults to Bandit.
  • token - The token of the bot.

Summary

Functions

Returns the base URL of the Telegram Bot API.

Returns the adapter for making HTTP requests.

Returns the adapter for handling webhook requests.

Returns the token of the bot.

Functions

@spec api_base_url() :: String.t()

Returns the base URL of the Telegram Bot API.

@spec caller_adapter() :: module() | {module(), keyword()}

Returns the adapter for making HTTP requests.

@spec hook_adapter() :: module()

Returns the adapter for handling webhook requests.

@spec token() :: String.t()

Returns the token of the bot.