Anti-Spam Module

Protect your groups from spam

ModerationFree Plan

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 seconds

Link Filtering

Block messages containing unauthorized links

Whitelist: telegram.me, your-domain.com

Media Restrictions

Control who can send media files

Allow media: Admins only / After 24h

Forward Detection

Detect forwarded spam messages

Block forwards from: Channels, Unknown users

Configurable 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

Related Module: AI Chat

Combine with AI Chat for intelligent spam detection.

AI Chat Module