telega/config

Types

pub opaque type Config

Functions

pub fn get_max_retry_attempts(config: Config) -> Int
pub fn get_secret_token(config: Config) -> String
pub fn get_server_url(config: Config) -> String
pub fn get_tg_api_url(config: Config) -> String
pub fn get_token(config: Config) -> String
pub fn get_webhook_path(config: Config) -> String
pub fn new(
  token token: String,
  url server_url: String,
  webhook_path webhook_path: String,
  secret_token secret_token: Option(String),
) -> Config

Creates a new Bot with the given options.

If secret_token is not provided, a random one will be generated.

Search Document