Commit Graph

2 Commits

Author SHA1 Message Date
admin 2af4603ba3 Implement profile change detection and persistence
- Enhance topic detection with message_thread_id (primary) and reply_to_topic_id (fallback)
- Add DatabaseManager.get_user_profile() to load stored user profiles
- Add DatabaseManager.update_user_profile() for profile-only updates (without affecting message_count)
- Refactor handle_profile_update() to compare stored vs current profiles
- Automatically detect name and username changes in handle_message()
- Persist detected profile changes to user_stats and profile_history tables
- Log profile changes with before/after details in activity logging
2026-06-09 20:32:35 +02:00
admin 4819bdb70e Initial commit: Telegram monitoring bot with external configuration
- Externalize configuration to YAML (config_example.yaml)
- Add config loader with validation in bot.py
- Implement DatabaseManager for activity logging and user stats
- Add message handlers with topic awareness
- Include setup_venv.sh for automated environment setup
- Add requirements.txt with dependencies (python-telegram-bot, PyYAML)
- Comprehensive README with setup and configuration instructions
2026-06-09 19:32:07 +02:00