Admin Commands
👑 Admin Commands
Section titled “👑 Admin Commands”Make it easy to promote and demote users with the admin module!
User Commands: × /adminlist: List the admins in the current chat.
Admin Commands:
× /promote <reply/username/mention/userid>: Promote a user.
× /demote <reply/username/mention/userid>: Demote a user.
× /title <reply/username/mention/userid> <custom title>: Set custom title for user
Anonymous Admin Support
The /anonadmin command allows group owners to toggle anonymous admin recognition:
/anonadmin on - Enable anonymous admin checks
/anonadmin off - Disable anonymous admin checks
When enabled, the bot will request verification for admin actions from anonymous accounts.
How Anonymous Admin Verification Works:
- Bot detects sender is GroupAnonymousBot
- Original message cached with 20-second TTL
- “Verify Admin” button sent to chat
- Clicking user verified as admin, command executed
- Button expires after 20 seconds if not verified
Supported Commands: Admin: /promote, /demote, /title Bans: /ban, /dban, /sban, /tban, /unban Mutes: /mute, /smute, /dmute, /tmute, /unmute Pins: /pin, /unpin, /permapin, /unpinall Purges: /purge, /del Warns: /warn, /swarn, /dwarn
Module Aliases
Section titled “Module Aliases”This module can be accessed using the following aliases:
adminspromotedemotetitle
Available Commands
Section titled “Available Commands”| Command | Description | Disableable |
|---|---|---|
/admincache | No description available | ❌ |
/adminlist | List the admins in the current chat. | ✅ |
/anonadmin | No description available | ❌ |
/clearadmincache | No description available | ❌ |
/demote | Demote a user. | ❌ |
/invitelink | No description available | ❌ |
/promote | Promote a user. | ❌ |
/title | Set custom title for user | ❌ |
Usage Examples
Section titled “Usage Examples”Basic Usage
Section titled “Basic Usage”/admincache/adminlist/anonadminFor detailed command usage, refer to the commands table above.
Required Permissions
Section titled “Required Permissions”Most commands in this module require admin permissions in the group.
Bot Permissions Required:
- Delete messages
- Ban users
- Restrict users
- Pin messages (if applicable)
Technical Notes
Section titled “Technical Notes”Security Notes
- All user-controlled input is HTML-escaped to prevent injection attacks
- Admin permission changes run with proper error handling and panic recovery