Backup Commands
📦 Backup Commands
Section titled “📦 Backup Commands”📦 Backup & Restore
Backup and restore your group settings using these commands:
Admin Commands:
- /export - Export all group settings to a JSON file
- /export notes filters rules - Export specific modules only
Creator Commands:
- /import - Reply to a backup file to restore settings
- /import notes filters - Import only specific modules
- /reset - Reset all settings to default
- /reset warnings locks - Reset specific modules only
Rate Limits:
- Export: 1 per 5 minutes
- Import: 1 per 10 minutes
- Reset: 1 per hour
Module Aliases
Section titled “Module Aliases”This module can be accessed using the following aliases:
exportimportreset
Available Commands
Section titled “Available Commands”| Command | Description | Disableable |
|---|---|---|
/export | Export all group settings to a JSON file | ✅ |
/import | Reply to a backup file to restore settings | ✅ |
/reset | Reset all settings to default | ❌ |
Usage Examples
Section titled “Usage Examples”Basic Usage
Section titled “Basic Usage”/export/import/resetFor detailed command usage, refer to the commands table above.
Required Permissions
Section titled “Required Permissions”/export— Requires Admin (RequireUserAdmin+RequireBotAdmin). Rate limited: 1 per 5 minutes./import— Requires Group Creator (RequireUserOwner). Rate limited: 1 per 10 minutes./reset— Requires Group Creator (RequireUserOwner). Rate limited: 1 per hour.
Confirmation Flow
Section titled “Confirmation Flow”Both /import and /reset require explicit confirmation before executing:
- After parsing the backup file (or reset modules), the bot shows a message listing which modules will be affected.
- An inline keyboard with Confirm/Cancel buttons is attached:
- Confirm — Executes the operation immediately.
- Cancel — Cleans up pending state and aborts.
- Only the group creator can click either button; non-creators see an alert.
Version Compatibility
Section titled “Version Compatibility”When importing a backup file, the bot compares the backup’s version against the current bot version. If they differ, a version mismatch warning is prepended to the confirmation message. The import can still proceed after confirmation.