forked from rezhajulio/PythonID-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
60 lines (45 loc) · 2.07 KB
/
.env.example
File metadata and controls
60 lines (45 loc) · 2.07 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
54
55
56
57
58
59
60
# Telegram Bot Token from @BotFather
TELEGRAM_BOT_TOKEN=your_bot_token_here
# Group ID where the bot monitors messages (negative number for groups)
# Example: -1001234567890
GROUP_ID=-1001234567890
# Topic ID where the bot sends warnings (message_thread_id)
# Example: 123
WARNING_TOPIC_ID=123
# Restrict users who fail the profile check (true/false)
# When enabled, users without profile picture or username will be muted
RESTRICT_FAILED_USERS=false
# Number of messages before restricting user (only when RESTRICT_FAILED_USERS=true)
# 1st message: warning, 2 to (N-1): silent, Nth message: restrict
WARNING_THRESHOLD=3
# Minutes before automatically restricting user (time-based enforcement)
# Users will be auto-restricted if they don't complete profile within this duration
# Default: 180 minutes (3 hours), use 5 for testing
WARNING_TIME_THRESHOLD_MINUTES=180
# Path to SQLite database file
DATABASE_PATH=data/bot.db
# Link to group rules message
RULES_LINK=https://t.me/pythonID/290029/321799
# Enable captcha verification for new members (true/false)
# When enabled, new members must click a button to verify they're not bots
CAPTCHA_ENABLED=false
# Timeout in seconds before restricting unverified users
# Default: 120 seconds (2 minutes)
CAPTCHA_TIMEOUT_SECONDS=120
# Path to groups.json for multi-group support (optional)
# If this file exists, per-group settings are loaded from it instead of the
# GROUP_ID/WARNING_TOPIC_ID/etc. fields above. See groups.json.example.
# GROUPS_CONFIG_PATH=groups.json
# Logfire Configuration (optional - for production logging)
# Get your token from https://logfire.pydantic.dev
LOGFIRE_TOKEN=your_logfire_token_here
# Service name for Logfire (default: pythonid-bot)
LOGFIRE_SERVICE_NAME=pythonid-bot
# Environment for Logfire (production/staging, auto-detected from BOT_ENV)
LOGFIRE_ENVIRONMENT=production
# Enable/disable Logfire logging (true/false)
# Set to false for local development to avoid quota usage
LOGFIRE_ENABLED=false
# Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
# Use DEBUG for detailed logs, INFO for production
LOG_LEVEL=INFO