Documentation
Technical specifications and manual.
Introduction
GuardBot is an automated system for Telegram group moderation. The bot filters spam, blocks links, stops raids, and verifies new users via captcha. Configuration is executed via Telegram commands. The architecture consists of multiple sub-modules ensuring high availability and zero-delay message processing.
System Requirements
The bot requires Administrator privileges in the target Telegram group. Missing permissions will result in silent failures. No external infrastructure is required on the user side.
Quick Start
Initial configuration guide.
Commands
Full list of administration commands categorized by function.
Basic Control
- /onEnable protection
- /offDisable protection
- /statusCurrent status
- /settingsDetailed settings
- /helpThis help manual
Working Modes
- /mode enforceEnable blocking
- /mode auditLogging only
Verification
- /verify on|offToggle verification
- /captchaCaptcha settings
- /addquestionAdd question
- /questionsQuestions list
Greetings
- /welcome on|offToggle welcome
- /setwelcomeSet text
- /welcometestPreview
- /goodbye on|offToggle goodbye
- /setgoodbyeSet text
Blacklist
- /blacklistManagement menu
- /blacklist add wordAdd word
- /blacklist remove wordRemove word
- /blacklist listShow all
Media Restrictions
- /restrict typeForbid media
- /unrestrict typeAllow media
- /restrictionsSettings menu
- /mediasize MBMax file size
Anti-Link
- /links on|offToggle protection
- /whitelist add domainAllow domain
- /whitelist listAllowed list
Anti-Script
- /antiscript on|offToggle
- /antiscript block langBlock language
- /antiscript listShow status
Slowmode
- /slowmode on|offToggle
- /slowmode 30Interval in seconds
- /slowmode reset @userReset timer
Anti-Forward
- /antiforward on|offToggle
- /antiforward allow @channelAllow channel
- /antiforward listShow status
Limits & Reports
- /mentionlimit on|offToggle mentions
- /mentionlimit 5Set limit
- /report reasonReport (by reply)
- /reportsReports list
Notes & Cleanup
- /save tag textSave note
- /notesNotes list
- /delnote tagDelete note
- /cleanup on|offToggle cleanup
- /cleanup statusCleanup settings
Stats & Schedule
- /stats today|weekPeriod stats
- /mystatsMy activity
- /schedule listTasks list
- /schedule daily HH:MM textDaily task
Backups & Logs
- /backupCreate backup
- /restoreRestore (by reply)
- /auditlogAction summary
- /exportlogs 24h|7dExport logs
Modules
System logic and protection mechanisms.
Smart Captcha
Four verification methods are supported to prevent automated accounts from joining the group.
- Button: Standard confirmation via interface button.
- Math: Arithmetic equations with three difficulty levels.
- Image: Distorted text generation. Verification requires exact case-sensitive match.
- Custom: Administrator-defined questions. Verification requires case-insensitive match.
Configuration is managed via the /captcha command. Timeout defaults to 120 seconds. Unverified users are automatically removed.
Anti-raid
The system monitors join rates in real-time. The default threshold is 5 joins within 30 seconds. Exceeding the threshold triggers an automatic 10-minute lockdown.
During lockdown, new members are restricted from sending messages. Administrators receive immediate notifications regarding the incident.
Content Filters
Advanced text analysis prevents multiple forms of group pollution:
- Rate limits block message floods (configurable low/medium/high).
- Duplicate detection removes identical repeated messages.
- Text analysis blocks messages exceeding 50 percent emojis.
- Text analysis blocks messages exceeding 70 percent uppercase characters.
- External links and Telegram invites are removed unless present in the whitelist.
FAQ
Technical specifications and limits.