Просмотр исходного кода

feat: add Telegram notification configuration options to example.env

Manuel 10 месяцев назад
Родитель
Сommit
e9a9fc433e
2 измененных файлов с 19 добавлено и 1 удалено
  1. 4 0
      .gitignore
  2. 15 1
      example.env

+ 4 - 0
.gitignore

@@ -171,3 +171,7 @@ cython_debug/
 # Custom
 eicar.com.txt
 .DS_Store
+
+# Telegram session files
+*.session
+*.session-journal

+ 15 - 1
example.env

@@ -19,4 +19,18 @@ FIRST_PASSWORD="mipasswordsegura"
 JWT_SECRET_KEY="your-jwt-secret-key-generate-with-python-secrets"
 JWT_EXPIRY_HOURS=24
 MAX_LOGIN_ATTEMPTS=5
-LOCKOUT_DURATION_MINUTES=15
+LOCKOUT_DURATION_MINUTES=15
+# Telegram Notifications (optional)
+# Get your API credentials from https://my.telegram.org/apps
+TELEGRAM_ENABLED=false
+TELEGRAM_API_ID=
+TELEGRAM_API_HASH=
+# Option 1: Use a bot (recommended) - Get token from @BotFather
+TELEGRAM_BOT_TOKEN=
+# Option 2: Use your user account (requires phone number and authentication)
+TELEGRAM_PHONE=
+# Session name for storing authentication
+TELEGRAM_SESSION_NAME=squidstats_bot
+# Comma-separated list of recipients (usernames with @, user IDs, or chat IDs)
+# Example: @username1,@username2,123456789
+TELEGRAM_RECIPIENTS=