telega/config

Types

pub opaque type Config

Functions

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