Warnings & auto-ban

Customise the deletion notice, make it self-delete, and auto-ban repeat violators — all Premium.

Everything on this page requires a Premium subscription for the group.

Custom warning message

Rule-violation message editor
Rule-violation message editor

By default the bot replies to a deleted message with a generic notice. On Premium, write your own under Rule violation message — it supports basic Markdown formatting and inline buttons, and the placeholder {$username} is replaced with the violator's name or @username automatically. Leave it empty to keep the default text.

Self-deleting warnings

Delete warning removes the bot's own notice message after a set delay — 15, 30 or 60 seconds, or Never. Useful for groups that don't want moderation notices piling up in the chat history.

Auto-ban repeat violators

Antispam: auto-ban settings
Antispam: auto-ban settings

Under Antispam, turn on Enable autoblock and set:

  • Max violations — how many violations within the window trigger a ban.
  • Check window — the time period violations are counted over (for example, 1 hour).
  • Ban duration — how long the ban lasts, or Forever.

A member who crosses the violation count within the window is banned automatically — no administrator has to be watching. This requires the bot to have the Restrict members admin right; see Permissions.

Send warning message controls whether the bot posts a notice before the ban is applied, independent of whether a custom message above is set.