Should Delete

What It Does

The /should_delete command lets you control whether messages deleted in the incoming (source) chats should also be deleted in the outgoing (target) chats. You can toggle this setting to either YES (delete in outgoing) or NO (don’t delete in outgoing).

Prerequisite

  • Incoming and Outgoing Chats Configured: Ensure that both incoming and outgoing chats are set up using the /incoming and /outgoing commands. Without these, there will be no messages to sync deletion with.

How to Use It

  • Current Configuration: When you send the /should_delete command, the bot will display your current configuration (either YES or NO).

  • Toggle the Setting:

    1. You will see a button that allows you to invert the setting.

      • Clicking the button changes YES to NO or vice versa.

      • Example: If your current setting is YES (delete messages in the outgoing chat), clicking the button will change it to NO (don’t delete).

         control whether messages deleted in the incoming (source) chats should also be deleted in the outgoing (target) chats.
  • Note on Reliability:

    1. This feature is not fully reliable as it can only cache the last 100 messages.

    2. Additionally, some delete requests aren’t sent by Telegram, so they cannot be handled at all.

Real-Life Use Cases

  • Privacy Control: Ensure sensitive messages that are deleted in the source chat are also deleted in the target chat to maintain privacy.

  • Message Clean-Up: Automatically sync deletions to keep the outgoing chat clutter-free by removing messages that are no longer needed in the incoming chat.

  • Partial Sync: If you don't need full deletion sync, you can leave the setting on NO and only delete messages manually in the outgoing chat.

Last updated