Purges Commands
🧹 Purges Commands
Section titled “🧹 Purges Commands”Admin only:
- /purge: deletes all messages between this and the replied-to message.
- /del: deletes the message you replied to.
Examples:
- Delete all messages from the replied message, until now.
->
/purge
Range Deletion with purgefrom/purgeto: When you need more control over the deletion range:
-
Reply to the first message in the range:
/purgefromThe bot will confirm the message is marked (expires after 30 seconds). -
Reply to the last message in the range:
/purgetoAll messages between the two markers (inclusive) will be deleted.
This is useful when you can’t easily scroll to the starting point or need to verify the range before deletion.
Limits and Restrictions:
- Maximum messages per purge: 1000 messages
- Message age limit: Messages older than 48 hours may not be deletable (Telegram API restriction)
- Permissions required: Both the user and the bot must have “Delete Messages” permission
Module Aliases
Section titled “Module Aliases”This module can be accessed using the following aliases:
purgedel
Available Commands
Section titled “Available Commands”| Command | Description | Disableable |
|---|---|---|
/del | deletes the message you replied to. | ❌ |
/purge | deletes all messages between this and the replied-to message. | ❌ |
/purgefrom | No description available | ❌ |
/purgeto | No description available | ❌ |
Usage Examples
Section titled “Usage Examples”Basic Usage
Section titled “Basic Usage”/del/purge/purgefromFor 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”Notes:
- The
/purgefrommarker expires after 30 seconds if not followed by/purgeto - Deleting large ranges uses concurrent processing for better performance
- Status messages (showing how many messages were deleted) auto-delete after 3 seconds
- The bot handles already-deleted messages gracefully without errors