View Source Telegex.Global (Telegex v1.2.2)

Global configuration options.

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

option-descriptions

Option descriptions

  • api_base_url - The base URL of the Telegram Bot API. Defaults to https://api.telegram.org/bot.
  • 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.

Link to this section Summary

Link to this section Functions

@spec api_base_url() :: String.t()
@spec caller_adapter() :: module() | {module(), keyword()}
@spec hook_adapter() :: module()
@spec token() :: String.t()