Simple Telegram bot scaffold using telegraf.
- Install dependencies:
npm install- Provide your bot token (from BotFather) in an env var named
BOT_TOKEN.
- PowerShell:
$env:BOT_TOKEN = "<your-token>"
npm start- Command Prompt (cmd.exe):
set BOT_TOKEN=<your-token>
npm startOr create a .env file with:
BOT_TOKEN=your_token_here
- Start:
npm start/start- greeting/help- list commands/ping- repliespong/echo <text>- echoes provided text
index.js- bot implementationpackage.json- project metadata
- Add persistent storage, admin commands, or webhook deployment.