Triggers · Examples

Word blacklist #

Condition Message by regex — list the words separated by |, e.g. крипта|работа|p2p

Action Delete message, or something harsher

The simplest and most popular trigger. See the “Regular expressions” reference for the supported format.

Word whitelist #

Condition Message by regex — the words that the anti-spam keeps flagging in your chat by mistake, separated by |, e.g. #вакансия|#резюме in a job chat or usdt|p2p in a crypto chat

Action 🛡 Don't check (skip spam)

A message that matches skips all anti-spam checks — including the check of the global LOLS ban list. So keep the words narrow and specific to your chat (a hashtag, a term of your community): a spammer who adds such a word to their text will get through as well.

Greeting and farewell messages #

Condition Join chat (or Leave chat)

Action Send message with a prepared template

The bot greets only those it is not about to block, so the chat does not fill up with greetings for spammers.

Chat rules with an unmute button #

Condition Join chat

Action Mute + Send message

In the template add a button with the actions Unmute + Delete message, and set a delete timer of 1–5 minutes. A newcomer cannot write until they have read the rules and pressed the button.

Point a newcomer to the FAQ #

Condition First message AND Message by regex \?

Action Send message

The hint appears only when the first message is actually a question.

Rules always at the bottom of the chat #

Condition Message length > 0

Action Send message

People rarely read pinned posts or the group description. With this trigger the bot posts its message after every user message and removes the previous copy, so the text is always in sight.

Rules as the first comment under a post #

Condition Channel post

Action Send message

Set up in the discussion group: the bot replies to every new post, so the rules always sit at the top of the comments.

Forward messages to a channel #

Everything at once

Condition Message type — tick every type

Action ↗️ Forward to… — pick the channel with the button, or send its id in reply

Why «Message type» and not a regex: a trigger with no conditions is not accepted, and a regex has nothing to match on a photo without a caption. Ticking all the types is how you say «anything».

The bot has to be an administrator in the destination channel. An album travels as a whole, not one picture at a time. The Hide sender toggle on the action sends a copy instead of a forward — without the «Forwarded from» line.

Only what you need

Add a second condition and set All conditions (AND):

  • 🔤 Message matches regex #вакансия|#объявление — only posts with those hashtags;
  • 🧵 Message in topic — only from one forum topic;
  • 🆕 First message — only newcomers' first messages;
  • 📏 Message length — cut off short replies;
  • Message type with only photo and video ticked — media only.

If you only need messages matching a text pattern, a regex alone is enough as the single condition — then «Message type» is not needed at all.

Close comments under an ad post #

Condition Channel post

Action Delete message

Deleting the auto-repost in the discussion group closes the comments for that post.

Keep the discussion group closed to joins #

Condition Join chat

Action Kick (without a ban)

People can still leave comments, but they do not become members of the group.

Ads from other bots #

Condition Sent by another bot AND Message by regex vpn[a-z0-9_]+bot

Action Delete message

Normally the bot does not check messages from other bots in the group. This trigger removes the ads without banning the bot itself.

Clean up greetings from other bots #

Condition Sent by another bot AND Message by regex with the wording of that greeting

Action Delete message, immediately or on a timer

Useful when another bot greets people the anti-spam has already blocked.

Delete emoji-only messages #

Condition Message by regex ^\p{Extended_Pictographic}$

Action Delete message

The anchors make the expression match only when there is nothing besides the emoji.

Restrict the language of messages #

Condition Message by regex ^[а-яё]{2,}$

Action Delete message

Replace the character set with the alphabet you want to restrict.

Block by the alphabet of the name #

Condition Name by regex [\x{4E00}-\x{9FFF}]

Action Ban

The example catches Chinese characters in the name. Swap the range for the alphabet you need: Arabic [\x{0600}-\x{06FF}], Hebrew [\x{0590}-\x{05FF}], Thai [\x{0E00}-\x{0E7F}].

The opposite case — allow only certain alphabets — is written through a negation: [^a-zA-Zа-яёА-ЯЁ0-9\s].

Spam nicknames as such are already handled by ✋ Face control → Filter names, with no setup; this trigger is for when a specific alphabet has to be restricted.

Ephemeral greeting in a channel #

Condition Join chat

Action Send ephemerally

Works in a channel as well: the greeting is seen only by the person who subscribed and leaves no trace in the feed. The bot needs the right to send welcome messages.

Your own punishment instead of the built-in one #

Condition Message type — pick the type you need

Action Delete + Mute for a chosen period, a warning, or a ban

This is how you change the punishment that the “Delete messages” section applies by default.

Markdown · Русский · 2026-12-02