Quick Start
Install the plugin:corsair.ts
Authentication
Supported Auth Types
bot_token(default) - Telegram bot token
Bot Token Setup
Options
| Option | Type | Description |
|---|---|---|
authType | 'bot_token' | Authentication method |
key | string | Bot token (optional, uses database if not provided) |
webhookSecret | string | Webhook secret token (optional) |
hooks | object | Endpoint hooks for custom logic |
webhookHooks | object | Webhook hooks for event handling |
errorHandlers | object | Custom error handlers |