-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
53 lines (46 loc) · 2.56 KB
/
.env.example
File metadata and controls
53 lines (46 loc) · 2.56 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
50
51
52
53
# =============================================================================
# LicenseChain Telegram Bot - Example environment variables
# Copy to .env and fill in real values. Do not commit .env.
# =============================================================================
# -----------------------------------------------------------------------------
# Required [SENSITIVE]
# -----------------------------------------------------------------------------
TELEGRAM_TOKEN=your_bot_token_from_botfather
LICENSECHAIN_API_KEY=your_licensechain_api_key
DATABASE_URL=postgresql://user:password@host:5432/dbname?sslmode=require
# -----------------------------------------------------------------------------
# Recommended (LicenseChain API and app)
# -----------------------------------------------------------------------------
LICENSECHAIN_BASE_URL=https://api.licensechain.app/v1
LICENSECHAIN_APP_NAME=your_app_slug_or_id
LICENSECHAIN_APP_VERSION=1.0.0
# Legacy aliases are still accepted for compatibility:
# LICENSE_CHAIN_API_KEY=your_licensechain_api_key
# LICENSE_CHAIN_API_URL=https://api.licensechain.app/v1
# -----------------------------------------------------------------------------
# Bot / runtime
# -----------------------------------------------------------------------------
PORT=3005
LOG_LEVEL=info
# Platform-injected (do not set manually unless testing)
# VERCEL=1
# AWS_LAMBDA_FUNCTION_NAME=
# -----------------------------------------------------------------------------
# Admin (Telegram user IDs; get yours from @userinfobot)
# -----------------------------------------------------------------------------
BOT_OWNER_ID=123456789
ADMIN_USERS=123456789,987654321
# -----------------------------------------------------------------------------
# Webhook mode (optional; if set, polling is disabled)
# Set USE_WEBHOOK=true and TELEGRAM_WEBHOOK_URL to the full HTTPS URL
# that Telegram will POST updates to (e.g. https://tg.licensechain.app/api/webhook).
# -----------------------------------------------------------------------------
# USE_WEBHOOK=false
# TELEGRAM_WEBHOOK_URL=https://your-domain.com/api/webhook
# WEBHOOK_SECRET=optional_secret_for_x_telegram_bot_api_secret_token
# -----------------------------------------------------------------------------
# Dashboard linked user (optional; for profile tier/role when Telegram linked)
# -----------------------------------------------------------------------------
# LICENSECHAIN_DASHBOARD_URL=https://dashboard.licensechain.app
# DASHBOARD_URL=https://dashboard.licensechain.app
# BOT_LINKED_USER_SECRET=shared_secret_for_linked_user_api