-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.telegram
More file actions
43 lines (33 loc) · 1.14 KB
/
.env.telegram
File metadata and controls
43 lines (33 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Telegram Bot Configuration Example
# Copy this to .env and fill in your values
# Basic Server Configuration
NODE_ENV=development
PORT=3000
HOST=0.0.0.0
# AI Configuration (get from OpenRouter)
API_KEY=your_openrouter_api_key_here
API_URL=https://openrouter.ai/api/v1/chat/completions
AI_DEFAULT_MODEL=x-ai/grok-4.1-fast
# Security
JWT_SECRET=your_jwt_secret_at_least_32_chars_long
# Telegram Bot Configuration
TELEGRAM_BOT_TOKEN=1234567890:ABCdefGHIjklMNOpqrsTUVwxyz-1234567890
TELEGRAM_WEBHOOK_URL=https://your-domain.com/webhook/telegram
TELEGRAM_WEBHOOK_SECRET=your_webhook_secret_here
# Optional: Private mode (only these users can access)
TELEGRAM_ALLOWED_USERS=123456789,987654321
TELEGRAM_ENABLE_WHITELIST=true
# Optional: Admin users (can manage bot via API)
TELEGRAM_ADMIN_USERS=123456789
# Optional: Features (disabled by default for security)
TELEGRAM_ENABLE_IMAGES=false
TELEGRAM_ENABLE_VOICE=false
# Optional: Character settings
TELEGRAM_DEFAULT_CHARACTER_ID=1
# Optional: Rate limiting
TELEGRAM_RATE_LIMIT_PER_USER=30
TELEGRAM_RATE_LIMIT_WINDOW=60
# Optional: Debugging
TELEGRAM_ENABLE_LOGGING=true
DEBUG_REQUESTS=true
AI_DEBUG_LOGS=true