Adauga logica de autorizare flexibila: - Useri in TELEGRAM_ALLOWED_USER_IDS (whitelist explicit) - SAU membrii grupului TELEGRAM_CHAT_ID (verificare getChatMember API) - Membrii grupului pot folosi bot-ul atat in grup cat si in DM individual Modificari: - telegram_trigger_bot.py: metoda is_member_of_group() cu verificare API - telegram_trigger_bot.py: is_user_allowed() cu logica OR pentru whitelist + grup - .env.example: comentarii actualizate pentru noua logica - TELEGRAM_BOT_SETUP.md: documentatie completa pentru autorizare Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
953 B
Plaintext
34 lines
953 B
Plaintext
# Credentials (NU comite valorile reale în git!)
|
|
BTGO_USERNAME=
|
|
BTGO_PASSWORD=
|
|
|
|
# Configurare
|
|
HEADLESS=false
|
|
TIMEOUT_2FA_SECONDS=120
|
|
SCREENSHOT_ON_ERROR=true
|
|
DOWNLOAD_TRANSACTIONS=true
|
|
OUTPUT_DIR=./data
|
|
LOG_LEVEL=INFO
|
|
|
|
# Notificări (opțional)
|
|
ENABLE_NOTIFICATIONS=false
|
|
|
|
# Email (SMTP)
|
|
EMAIL_ENABLED=false
|
|
SMTP_SERVER=smtp.gmail.com
|
|
SMTP_PORT=587
|
|
SMTP_USERNAME=your-email@gmail.com
|
|
SMTP_PASSWORD=your-app-password
|
|
EMAIL_FROM=your-email@gmail.com
|
|
EMAIL_TO=mmarius28@gmail.com
|
|
|
|
# Telegram Trigger Bot (pentru declanșare remote prin Telegram)
|
|
TELEGRAM_ENABLED=false
|
|
TELEGRAM_BOT_TOKEN=123456789:ABCdefGHIjklMNOpqrsTUVwxyz
|
|
TELEGRAM_CHAT_ID=your-chat-id
|
|
|
|
TELEGRAM_ALLOWED_USER_IDS=123456789,987654321 # User IDs autorizați individual (opțional)
|
|
# TELEGRAM_CHAT_ID = grup autorizat (orice membru poate folosi bot-ul în DM/grup)
|
|
# Dacă ambele sunt goale = permite oricui
|
|
TELEGRAM_POLL_TIMEOUT=60 # Long polling timeout în secunde (30-90 recomandat)
|