The Anti-Spam module provides comprehensive protection against spam in your Telegram groups. It uses multiple detection methods and configurable actions to keep your community clean while minimizing false positives.
Detection Features
Flood Detection
Detect and prevent message flooding
Max messages: 5 per 10 secondsLink Filtering
Block messages containing unauthorized links
Whitelist: telegram.me, your-domain.comMedia Restrictions
Control who can send media files
Allow media: Admins only / After 24hForward Detection
Detect forwarded spam messages
Block forwards from: Channels, Unknown usersConfigurable Actions
Delete message
Silently remove the spam message
Warn user
Send a warning before taking action
Mute user
Temporarily restrict user from posting
Ban user
Remove user from the group
Example Configuration
{
"module": "anti_spam",
"enabled": true,
"config": {
"floodLimit": 5,
"floodInterval": 10,
"blockLinks": true,
"allowedDomains": ["telegram.me"],
"blockForwards": true,
"newUserRestriction": 24,
"action": "warn_then_mute",
"muteDuration": 3600
}
}Admin Commands
/antispam onEnable module/antispam offDisable module/antispam statusShow current settings/whitelist @domainAdd domain to whitelist