frankenbot/.env.example
pdyde 73c36785e2 feat: Telegram Bot Integration mit QR-Code
Features:
- Telegram Bot mit python-telegram-bot Library
- Bidirektionale Kommunikation (Anfragen → Tasks → Antworten)
- QR-Code auf Settings-Seite für einfache Bot-Verbindung
- User-ID Whitelist für Sicherheit
- Automatische Task-Erstellung aus Telegram-Nachrichten
- Agent-Antworten werden zurück zu Telegram gesendet

Implementation:
- Neue Telegram-Handler in app.py (start, message)
- QR-Code Generator mit qrcode Library
- Settings-Seite erweitert mit Telegram-Konfiguration
- .env.example mit Telegram-Setup-Anleitung
- Background Thread für Telegram Polling
- Integration mit bestehendem Task-System

Configuration:
- TELEGRAM_BOT_TOKEN: Bot Token von @BotFather
- TELEGRAM_BOT_USERNAME: Bot Username für QR-Code
- TELEGRAM_ALLOWED_USERS: Komma-getrennte User-IDs

Usage:
1. Bot via @BotFather erstellen
2. Token + User-IDs in .env eintragen
3. App starten
4. QR-Code auf /settings scannen
5. /start im Bot senden
2026-02-21 13:17:04 +01:00

35 lines
1.5 KiB
Text

# Email Integration Configuration
# Gmail Example:
# 1. Enable 2-Factor Authentication on your Google Account
# 2. Generate an App-Specific Password: https://myaccount.google.com/apppasswords
# 3. Copy the 16-character password below
IMAP_SERVER=imap.gmail.com
SMTP_SERVER=smtp.gmail.com
EMAIL_ADDRESS=your-email@gmail.com
EMAIL_PASSWORD=your-app-specific-password
IMAP_PORT=993
SMTP_PORT=587
# Other common providers:
# Outlook/Office365:
# IMAP: imap-mail.outlook.com (Port 993)
# SMTP: smtp-mail.outlook.com (Port 587)
# Yahoo:
# IMAP: imap.mail.yahoo.com (Port 993)
# SMTP: smtp.mail.yahoo.com (Port 587)
# ─────────────────────────────────────────────────────────────────────────────
# Telegram Bot Configuration
# ─────────────────────────────────────────────────────────────────────────────
# 1. Create a bot via @BotFather on Telegram
# 2. Send /newbot and follow instructions
# 3. Copy the Bot Token (e.g., 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11)
# 4. Get your User ID via @userinfobot (send /start)
# 5. Add your User ID to TELEGRAM_ALLOWED_USERS (comma-separated for multiple)
TELEGRAM_BOT_TOKEN=your-bot-token-here
TELEGRAM_ALLOWED_USERS=123456789,987654321
# Optional: Custom bot name for QR code
TELEGRAM_BOT_USERNAME=your_bot_name_bot