-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy path.env.example
More file actions
49 lines (40 loc) · 1.95 KB
/
Copy path.env.example
File metadata and controls
49 lines (40 loc) · 1.95 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
44
45
46
47
48
49
# Get this from @BotFather on Telegram
TELEGRAM_BOT_TOKEN=
# Get this from https://cloud.cerebras.ai (any OpenAI-compatible provider works)
AI_API_KEY=
AI_BASE_URL=https://api.cerebras.ai/v1
AI_MODEL=gpt-oss-120b
# Optional: enable conversation memory, rate limit, and dedupe by
# pointing at a SQLite file. Without this the bot runs in stateless
# mode (replies still work, but no per-user history). On PA use:
# SQLITE_PATH=/home/<your-pa-username>/bot.db
# SQLITE_PATH=
# Optional: random secret to verify webhook requests come from Telegram (recommended)
# Generate one with: openssl rand -hex 16
# WEBHOOK_SECRET=
# Optional: when set, the bot auto-registers this URL as the Telegram
# webhook on worker boot + after every /api/deploy. No manual setWebhook
# step needed. Leave unset for local polling.
# WEBHOOK_URL=https://<your-pa-username>.pythonanywhere.com/api/webhook
# Optional: Hugging Face Gradio Space — enables the /model command
# HF_SPACE_ID=edisimon/armgpt-demo
# HF_TOKEN=
# Optional: label shown by /about under "Hosting:". Default is "PythonAnywhere".
# HOSTING_LABEL=
# Optional: comma-separated whitelist of allowed Telegram users. Each
# entry is a username (with or without leading @) or a numeric user_id.
# When empty (default), the bot responds to everyone. When set, the bot
# stays silent for anyone not in the list — no rejection reply, so
# unauthorized users can't confirm the bot exists.
# Example: ALLOWED_USERS=@alice,bob,123456789
# ALLOWED_USERS=
# Optional: enables /api/deploy auto-deploy webhook. Set the same value
# as a GitHub repo secret named DEPLOY_SECRET so the deploy workflow
# can hit it. When unset, /api/deploy returns 403 (fail-closed).
# Generate with: openssl rand -hex 32
# DEPLOY_SECRET=
# Only needed if you want to use scripts/pa_deploy.sh (one-command PA deploy
# driven from your laptop). Your PythonAnywhere username and an API token
# from https://www.pythonanywhere.com/account/#api_token
# PA_USERNAME=
# PA_API_TOKEN=