---
title: "Triggers · Conditions"
type: "section"
id: "ref-trig-cond"
url: "https://lols.bot/docs/en/ref-trig-cond/"
md_url: "https://lols.bot/docs/ref-trig-cond.en.md"
lang: "en"
alternate: "https://lols.bot/docs/ref-trig-cond.md"
updated: "2026-11-27"
---

# Triggers · Conditions

## User joined the chat

A user joined the chat.

## Join request

A user submitted a request to join the group/channel. Required for the DM-to-applicant and approve/decline actions.

## User left the chat

A user left or was removed from the chat.

## First message

Fires on a user's very first message in the chat (a newcomer's first post).

## Channel post

The message is an automatic repost from the channel linked to the discussion group.

## Message from a bot

The message was sent by another bot.

## Message type

Matches the type of the message: plain text, photo, video, sticker, voice, document, contact, service message and so on. Several types can be selected at once — the condition fires if the message is of any of them.

## Message matches regex

The message text matches the given regular expression (PCRE).

## Link regex

A link/URL found in the message matches the regular expression.

## Name matches regex

The author's name (first + last name) matches the regular expression.

## Username matches regex

The user's @username matches a regular expression.

## Bio matches regex

The author's profile bio/about text matches the regular expression.

## Phone matches regex

The phone number in the profile matches a regular expression. Telegram hides the number by default, so the condition matches rarely.

## Message length

The message length in characters compared with a value (greater/less/equal).

## Message in topic

The message was posted in a specific forum topic.

## Probability

Fires not every time but with the given probability: 0.25 or 25% is roughly one time in four. The roll is independent — it does not depend on the user or the text.

## Message language

The language of the message is one of the selected.

## Date / time / weekday

A time window: the trigger fires only on the given days of the week, within the given hours, or on specific dates. Input format is days and hours separated by a space: `1,2,3,4,5 9-18` means weekdays from 9 to 18. Days can be numbers (1 is Monday) or short names (`mon,tue`); an asterisk `*` means «any».
