Skip to content

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

This module can be accessed using the following aliases:

  • export
  • import
  • reset
CommandDescriptionDisableable
/exportExport all group settings to a JSON file
/importReply to a backup file to restore settings
/resetReset all settings to default
/export
/import
/reset

For detailed command usage, refer to the commands table above.

  • /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.

Both /import and /reset require explicit confirmation before executing:

  1. After parsing the backup file (or reset modules), the bot shows a message listing which modules will be affected.
  2. An inline keyboard with Confirm/Cancel buttons is attached:
    • Confirm — Executes the operation immediately.
    • Cancel — Cleans up pending state and aborts.
  3. Only the group creator can click either button; non-creators see an alert.

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.