Skip to content

Penalties ​

The Penalties module moderates the community chats: warnings, mutes, media bans, kicks, bans and message deletion. Admins give penalties with a reply command in the chat or from the panel; the person gets a private notice and can appeal. It is off by default: turn it on in Settings → Modules.

Before you start ​

  • In each community group or forum the bot is an administrator with Ban users and Delete messages. Chats warns about chats where one is missing.
  • Mute, no-media, kick and ban work only in supergroups (every forum is one). In a basic group only warnings and message deletion work.
  • Your Telegram account is linked to an active admin of the system.
  • In the chat, Remain anonymous is off for you: the bot cannot tell who an anonymous admin is and ignores their commands.

Commands in the chat ​

Reply to the offending message with a command. The bot deletes the command at once, carries out the penalty, and answers only in your private chat with it; it never writes in the group. Commands from anyone else are deleted silently.

CommandWhat it does
/mute 24h [note]Reads but cannot write until the time is up.
/media 2h [note]Text only: no photos, videos, stickers or links.
/warn [note]A warning; nothing is restricted.
/delDeletes the replied message.
/purge 6Deletes the person's messages of the last 6 hours (at most 48: Telegram cannot delete older ones).
/kick [note]Removes the person; they may come back by an invite.
/ban [7d] [note]Asks you privately first, because a ban deletes every message of the person in the chat. You can choose a mute for the same time instead. The question is open for 10 minutes.
/liftLifts the person's active penalties in this chat.

Durations: 30m, 2h, 1d, 7d or forever; at least 5 minutes.

Citing a rule ​

Every command except /lift can cite a rule. Put the item number right after the duration (or the hours of /purge):

/mute 24h 3.1 insults
/warn 2.4
/ban 7d 5
/purge 6 3.1

The number is checked against the rules page of this chat or topic (see Chat rules). An unknown number, or a chat without a rules page, refuses the command and tells you why privately. The person's notice then quotes the item and links to that edition of the rules.

Who cannot be penalised ​

Chat owners, chat admins and bots.

In the panel ​

Community → Penalties has the tabs Active, History, Appeals and Settings, and a "How to give a penalty" help panel.

Active penalties in the admin panelActive penalties in the admin panel

  • Give a penalty (also on a person's page and on the user card) issues a penalty in several chats at once. Pick the person (name, @username or phone, registered or not) and the chats; chats where the person was seen are ticked already. Then the kind, duration, rule and note, optionally Also delete their messages for the last 1–48 hours. A preview shows What the person gets. A ban from the panel is not asked about again; the form warns instead.
  • On a penalty: Lift (everywhere or in one chat), Change end for an active mute, no-media or ban, Cancel the ban for a /ban still waiting for your answer. Admins see a copy of the punished message (not for panel penalties).
  • A person's page lists all their penalties across chats.
  • In your private chat with the bot, /penalties lists active penalties in every chat (up to 20), each with a Lift button. It is not in the bot's menu.

Penalties end by themselves. An unmute done by hand in Telegram is recorded as "Lifted in Telegram".

Settings ​

SettingDefault
Send the person a notice (private, without your name; only if they ever started the bot)on
Quick durations the panel offers (1–6)1h, 1d, 7d
Where appeals go: to admins privately, or to the chats with chosen labelsto admins privately

Appeals ​

The person's notice has an Appeal button. The bot then asks for one message explaining why the penalty is unfair (up to 1000 characters) and waits 30 minutes. A person signed in to the cabinet can appeal on My penalties instead.

My penalties in the resident cabinet, with an appealMy penalties in the resident cabinet, with an appeal

  • Any penalty can be appealed within 14 days, and one still in force at any time. One appeal per penalty. A /ban that was never confirmed, or one Telegram refused everywhere, cannot be appealed.
  • New appeals are announced with an Open in the panel button, privately to every admin with a linked Telegram, or to the label chosen in Settings. Put such a label only on an admins' chat: the message has the person's name and text.
  • Decide on the penalty's page or in the Appeals tab. Accept lifts the penalty wherever it is still in force and marks it "Annulled on appeal": it no longer counts in statistics. Reject needs an answer to the person. Either way the bot sends the person the decision and your answer, without your name, even when notices are off.

Statistics ​

The module keeps the data item penalties.stats: penalties per month (UTC), kind and cited rule for the last 24 months, with no names. It is visible to admins only until you widen it in Data; an AI agent can read it to draw a chart on the site.

Released under the Apache License 2.0.