Documentation Index
Fetch the complete documentation index at: https://docs.boostgpt.co/llms.txt
Use this file to discover all available pages before exploring further.
Setup
1. Create Telegram Bot
Find BotFather
Open Telegram and search for @BotFather
Create bot
Send /newbot and follow instructions
Copy token
Copy the API token provided
2. Install
npm install @boostgpt/router
TELEGRAM_TOKEN=your_telegram_token
Usage
import { Router, TelegramAdapter } from '@boostgpt/router';
const router = new Router({
apiKey: process.env.BOOSTGPT_API_KEY,
projectId: process.env.BOOSTGPT_PROJECT_ID,
adapters: [
new TelegramAdapter({
telegramToken: process.env.TELEGRAM_TOKEN,
welcomeMessage: 'Hi {name}! 👋'
})
]
});
await router.start();
Options
Message sent on /start (use for user’s name)