telegram.config(...) with a Telegram bot token.
Config
| Option | Description | Env fallback |
|---|---|---|
botToken | Bot token from @BotFather. | SPECTRUM_TELEGRAM_BOT_TOKEN |
webhookSecret | Optional secret token for verifying webhook payloads. | SPECTRUM_TELEGRAM_WEBHOOK_SECRET |
baseUrl | Optional Bot API base URL. Defaults to https://api.telegram.org. | SPECTRUM_TELEGRAM_BASE_URL |
Example
Webhook registration
In cloud mode, whenprojectId and projectSecret are provided, the Telegram provider automatically registers its Fusor webhook on startup.
In local or direct mode, configure the webhook yourself through the Telegram Bot API.