Update 20250-04-17 #26

Merged
skobkin merged 6 commits from update_20250417 into main 2025-04-18 00:36:37 +03:00
Owner

Enhanced Logging and Documentation Updates

This PR introduces improved logging capabilities and documentation updates to enhance the bot's observability and user experience.

Key Changes:

  • 📝 Added comprehensive configuration documentation in README.md

    • Added environment variables table (TELEGRAM_BOT_TOKEN, DATABASE_PATH, LOG_LEVEL)
    • Documented command-line flags for logging control (-v, -vv)
  • 🔍 Enhanced logging throughout the bot's core functionality

    • Added detailed debug logging for all major operations
    • Improved log messages with contextual information (chat IDs, user IDs, group names)
    • Changed initial bot creation log from Info to Debug level
  • 🛠️ Added granular operation tracking

    • Added logging for bot initialization steps
    • Added debug logs for command handling
    • Added logging for group operations (create, join, leave, mention)
    • Added message processing logs for better troubleshooting
  • 🔒 Improved message formatting safety

    • Added consistent use of escapeMarkdownV2() for all user-facing messages
    • Enhanced safety of command responses by properly escaping special characters
    • Fixed potential markdown formatting issues in bot responses

These changes make the bot more maintainable and easier to debug while providing clearer setup instructions for users.

# Enhanced Logging and Documentation Updates This PR introduces improved logging capabilities and documentation updates to enhance the bot's observability and user experience. ## Key Changes: * 📝 Added comprehensive configuration documentation in README.md - Added environment variables table (`TELEGRAM_BOT_TOKEN`, `DATABASE_PATH`, `LOG_LEVEL`) - Documented command-line flags for logging control (`-v`, `-vv`) * 🔍 Enhanced logging throughout the bot's core functionality - Added detailed debug logging for all major operations - Improved log messages with contextual information (chat IDs, user IDs, group names) - Changed initial bot creation log from Info to Debug level * 🛠️ Added granular operation tracking - Added logging for bot initialization steps - Added debug logs for command handling - Added logging for group operations (create, join, leave, mention) - Added message processing logs for better troubleshooting * 🔒 Improved message formatting safety - Added consistent use of `escapeMarkdownV2()` for all user-facing messages - Enhanced safety of command responses by properly escaping special characters - Fixed potential markdown formatting issues in bot responses These changes make the bot more maintainable and easier to debug while providing clearer setup instructions for users.
skobkin self-assigned this 2025-04-18 00:32:15 +03:00
skobkin deleted branch update_20250417 2025-04-18 00:36:37 +03:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
skobkin/telegram-group-mention-bot!26
No description provided.