Discover and explore top open-source AI tools and projects—updated daily.
Telegram anti-spam bot for group moderation
Top 77.9% on SourcePulse
TG-Spam is a self-hosted, Docker-deployable anti-spam bot for Telegram groups, designed to automatically detect and remove spam messages and ban offending users. It offers a flexible, multi-layered detection approach, including message analysis, external database integration, similarity checks, stop words, optional OpenAI analysis, and custom Lua plugins, making it adaptable to various spam patterns.
How It Works
TG-Spam employs a sophisticated, configurable spam detection engine. It analyzes messages for similarity to known spam, checks against the Combot Anti-Spam System (CAS), compares against stop words, and can optionally leverage OpenAI's GPT models for contextual analysis. Additional checks include emoji count, link density, and message structure (e.g., image-only messages). Custom Lua scripts allow for user-defined detection logic, enhancing its adaptability. Detected spam results in message deletion and user banning, with configurable reporting and dry-run modes.
Quick Start & Requirements
umputun/tg-spam
on Docker Hub). Binaries and Homebrew installation (brew install umputun/apps/tg-spam
) are also available.Highlighted Details
Maintenance & Community
The project is actively maintained by umputun. Community support channels are not explicitly mentioned in the README.
Licensing & Compatibility
The project is licensed under the MIT License, permitting commercial use and integration with closed-source applications.
Limitations & Caveats
The bot is designed for single-group operation; multiple instances are required for different groups. OpenAI integration incurs costs and requires careful configuration to manage API calls. The effectiveness of spam detection relies on the quality and quantity of training data.
1 day ago
1 day