- Replace Redis/in-memory storage with SQLite for persistence - Add database.ts service with tables for users, groups, purchases, participants - Update state.ts and groupState.ts to use SQLite backend - Fix buyer_name to use display name instead of Telegram ID - Remove legacy reminder array handlers (now using 3-slot system) - Add better-sqlite3 dependency, remove ioredis - Update env.example with BOT_DATABASE_PATH option - Add data/ directory to .gitignore for database files
23 lines
509 B
Plaintext
23 lines
509 B
Plaintext
# Telegram Bot Configuration
|
|
TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here
|
|
|
|
# Backend API Configuration
|
|
API_BASE_URL=http://localhost:3000
|
|
|
|
# Frontend URL (for generating ticket links)
|
|
FRONTEND_BASE_URL=http://localhost:3001
|
|
|
|
# SQLite Database Path (optional - defaults to ./data/bot.db)
|
|
# BOT_DATABASE_PATH=./data/bot.db
|
|
|
|
# Bot Configuration
|
|
MAX_TICKETS_PER_PURCHASE=100
|
|
PAYMENT_POLL_INTERVAL_MS=5000
|
|
PAYMENT_POLL_TIMEOUT_MS=900000
|
|
INVOICE_EXPIRY_MINUTES=15
|
|
|
|
# Logging
|
|
LOG_LEVEL=info
|
|
NODE_ENV=development
|
|
|