interface TgtbConfig

tgtb config

Properties

optional
fetch_fn: fetch

Fetch function to use for api requests

optional
base_url: string

Base url for api requests

optional
use_test_mode: boolean

If true, the tgtb will use test endpoint https://api.telegram.org/bot<token>/test/METHOD_NAME

optional
hash_expiration: number | null

Time in seconds after which the hash will be considered expired If 0, null, or undefined, expiration check is disabled

Usage

import { type TgtbConfig } from ".";