Auto-delete

Remove delivered posts from the chat after a set time, or keep only the last N, with text rules.

HomeChatSettingsAuto-delete messages
HomeChatList of SourcesSourceAuto-delete messages

Channels with deals, discounts, signals and short-lived news go stale fast: a two-day-old post only clutters the feed. Auto-delete messages removes what the bot or your account delivered to the chat on its own: after a set time, or so that only the latest posts stay.

Available from the Expert plan. Below Expert the setting has no effect, even if it was on earlier, and deletions that were already scheduled are cancelled.

The item is in Chat settings, under the Settings category — last, after "AI processing" — and in the settings menu of every source.

Settings

While auto-delete is off, the screen shows a short explanation and the Auto-delete messages switch. Once on, a mode switch appears with a hint under it, including what auto-delete never touches.

  • By time — each post is deleted a set time after delivery. The Delete after row: a number and a unit (minutes or hours), up to 48 hours. Example: a deals channel where an offer lives for two hours — 2 hours.
  • Keep last — only the latest posts stay in the chat. The Keep the last row: a number from 1 to 200; older posts are deleted as new ones arrive. Example: a signals channel where you only want the freshest ten. At chat level the posts of all sources are counted, at source level only that source's posts.

Turning the switch off also cancels deletions that are already scheduled.

Deletion rules

The Deletion rules block sits below the mode settings. While there are no rules, the list says so: with no rules every delivered post is deleted. What Delete and Keep do is explained in the rule form: a Delete rule deletes only matching posts, a Keep rule always keeps matching posts. The add form opens only with the Add a rule button (focus jumps to the field).

It is the same editor as the filter rules:

  • a field with the regexp toggle inside it (the pattern is shown as /…/i), a regex cheat sheet ("?") and a tester;
  • a choice of Delete / Keep;
  • switches Exact match (case-sensitive), Whole word and Match visible text — when off, hidden parts such as link URLs are searched too; not available for regular expressions;
  • Cancel and Add buttons.

If you type a comma-separated list, the editor offers Split into N rules. Only one form is open at a time: starting to edit a rule closes the add form and the other way round — unsaved changes are dropped. Once rules exist, a one-line icon legend appears above the list, and rules are paged 10 per page.

Rules check the text of the delivered post. If the text cannot be read, a post is not deleted when rules are set. In Keep last mode with rules, N counts only the posts the rules mark.

Example. Mode "By time", 24 hours; two Delete rules with the words "sale" and "discount"; a Keep rule with "#important". Sales and discounts vanish after a day, posts with "#important" stay forever.

Chat and source

  • The setting in Chat settings applies to every source of the chat.
  • A source's own setting fully replaces the chat setting, rules included.
  • An explicit off on a source disables the chat's auto-delete for that source.
  • Reset to the chat's settings on a source removes its own setting, and the chat setting applies again.

Limits

  • Telegram lets a bot delete messages only within 48 hours of sending, so "By time" is capped at 48 hours. In "Keep last" mode the bot cannot delete posts older than 48 hours — they stay in the chat.
  • If a post was delivered through your account, deletion is not bound by that Telegram limit, but the mini app still caps the time at 48 hours.
  • Auto-delete does not apply to the filtered-posts chat or manually created posts (they have their own setting, see Create your own post). Send latest post is an ordinary delivery: the post it sends is deleted by the setting too.
  • If a post was already deleted by hand, the bot simply skips it.

Set up your first forward today

Every post you copy by hand is time the bot could save you. Open the bot, send a public channel’s link and pick where to forward it: the first messages arrive within minutes.

Open @RoutifyBot