Triggers · How it works

What triggers are #

A trigger is a rule: if this happens — do that. It tailors the bot to one specific chat without touching the global options.

It has two parts: one or more conditions (when to fire) and one or more actions (what to do). A single trigger can hold any number of both.

A chat can have several triggers; they do not interfere and are checked independently.

Available conditions #

Events: joining the chat, a join request, leaving, a member's first message, a channel post, a message from a bot.

Message content: attachment type, text by regular expression, and separately the link, name, @username, BIO and phone — each with its own regex. Plus message length and language.

Context: a specific forum topic, date, time and weekday, and probability — firing not every time but in a given percentage of cases.

Full list with descriptions — Triggers · Conditions →

Available actions #

On the message: delete, forward to another chat, pin, unpin.

Reply: send a message to the chat, to DM, ephemerally (only the addressee sees it), or show a captcha.

On the user: mute, kick, ban, issue a warning, put to a ban vote — or, the other way round, mark as «do not check».

On a join request: approve or decline. There is also «run a command», which fires any moderator command.

Full list — Triggers · Actions →

Combining conditions #

With more than one condition they are joined by AND or OR.

AND fires only when all of them hold — use it to narrow down: «first message» AND «contains a link».

OR needs just one of them — use it to widen: «joined the chat» OR «join request».

All actions run, in the order they are listed in the trigger.

Regular expressions #

At its simplest a regex is just a list of words separated by a pipe: crypto|job|p2p. Any of them matches anywhere in the message.

Precision comes next: ^…$ anchors to the start and end, \\b to a word boundary, [a-z] is a character set, {2,} a repetition count.

Real examples: vpn[a-z0-9_]+bot catches mentions of VPN bots, ^\\p{Extended_Pictographic}$ catches single-emoji messages.

Syntax walkthrough with examples — Regular expressions →

The message action #

The «send a message» action uses a ready template: formatted text, an attachment and buttons.

Buttons can carry their own actions — unmute, approve a request, jump to another template, delete the message itself. That is how chat rules with an «I agree» button are built.

A template has an auto-delete timer, so the message removes itself and does not clutter the chat.

Placeholders such as %MENTION% are filled in on the fly — see Templates · Placeholders → and Templates · Button actions →

Where to set it up #

Bot settings → 🛠 Tools → ⚡ Triggers. A trigger can also be switched off there temporarily instead of deleted.

If you would rather not assemble the rule by hand, use /gentrigger: describe the task in words and the bot proposes a ready trigger.

Ready-made recipes for common tasks — Triggers · Examples →

Markdown · Русский · 2026-11-27