TelegramEx.Config (TelegramEx v1.3.0)

Copy Markdown View Source

Reads bot configuration from the application environment.

Bot tokens are stored under the :telegram_ex application environment. See Getting Started for configuration examples.

Summary

Functions

Fetches the bot token from application configuration.

Functions

token(name)

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

Fetches the bot token from application configuration.

ArgumentError if the bot name is not configured.