New Features
- Aggressive spam cleanup: Delete all recent messages from a spammer when banned via /spam or /ban commands (#316)
- Configurable with --aggressive-cleanup flag
- Limit number of messages with --aggressive-cleanup-limit (default: 100)
- Asynchronous processing with rate limiting
- Duplicate message detection: Detect and filter spam based on duplicate messages (#315)
- Configurable threshold and time window
- Helps catch spam bots posting identical messages
- Edited message spam detection: Bot now checks edited messages for spam content (#309)
- OpenAI support for short messages: Option to check short messages with OpenAI (#306)
- Configurable via web UI
- Helps catch concise spam that might bypass other filters
Bug Fixes
- Fix manual spam reporting for image-only messages (#313, #314)
- Fix short message approval bypass issue (#312)
- Fix markdown escaping in admin info button callback (#310)
Improvements
- Better handling of special characters in usernames
- Improved rate limiting for message deletion (respects Telegram API limits)
- Enhanced test coverage for new features