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
This commit is contained in:
parent
4c123d5f0f
commit
73c36785e2
22 changed files with 8324 additions and 61 deletions
15
.env.example
15
.env.example
|
|
@ -18,3 +18,18 @@ SMTP_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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue