9006efcb8fad81c21a51c2bb8480dcc221fd80f9
- Rename user_stats table to user_profile - Split full_name into first_name and last_name columns - Remove message_count (focus on profile data only) - Add is_bot flag to track bot accounts - Create migration.sql with automatic data migration and schema conversion - Update MIGRATION.md with rename and migration instructions - Update all DatabaseManager methods to use new table structure - Update profile change detection to use separated name fields
LoggingBot
Kurze Anleitung zum Einrichten und Starten des Bots.
Voraussetzungen:
- Python 3.8+
git(optional)
Schnellstart
1. Virtuelle Umgebung anlegen und aktivieren
python3 -m venv .venv
source .venv/bin/activate
2. Abhängigkeiten installieren
pip install --upgrade pip
pip install -r requirements.txt
3. Konfiguration erstellen
Kopiere config_example.yaml zu config.yaml und passe die Werte an:
cp config_example.yaml config.yaml
Öffne config.yaml und ersetze:
YOUR_BOT_TOKEN_HEREmit deinem echten Telegram Bot Token- Optional: Passe
debug_mode,database.nameund andere Einstellungen an
4. Bot starten
python bot.py
Konfiguration
Die Konfiguration erfolgt über die Datei config.yaml:
- bot.token: Dein Telegram Bot Token (von BotFather)
- bot.debug_mode: Debug-Ausgaben aktivieren (true/false)
- database.name: SQLite-Datenbankdatei
- logging.write_to_file: Aktiviere Datei-Logging (true/false)
- logging.file_name: Name der Protokolldatei
- logging.level: Python Logging Level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
Optional: Ein kurzes Setup-Skript ist enthalten: setup_venv.sh.
Description
Languages
Python
98.4%
Shell
1.6%