Telegram RegExp AutoResponder: Step 4: setting up autoresponder rules
AndySendy academy

Step 4: setting up autoresponder rules

Telegram RegExp AutoResponder

Now let’s configure which messages to respond to and how.

How rules work

The program checks rules from top to bottom in order. As soon as it finds a match — it sends the response and stops checking further.

Examples:

  • Regex price — will trigger if the message contains the word “price”
  • Regex .* — will trigger on any message (place such a rule at the bottom of the list)

What is SPINTAX (variation messages)?

SPINTAX allows you to create different response variations so they don’t repeat. This reduces the risk of account blocking.

Simple example:

{Hello|Hi|Good day}! {How can I help?|What are you interested in?}

The program will choose a random combination each time:

  • “Hello! How can I help?”
  • “Hi! What are you interested in?”
  • “Good day! How can I help?”
  • and so on…

Adding a rule

  1. Click the “+ Add” button
  2. Fill in the fields:
    • Enabled: ✓ (checkmark — rule is active)
    • Regex: what to search for in the message (e.g., price or .* for all messages)
    • Template (SPINTAX): response text with variations (e.g., {Hello|Hi|Good day}!)
  3. Click “Preview” — you’ll see how the response will look
  4. Click “Save” — the rule will appear in the table

Editing a rule

  1. Click on the rule in the table (once)
  2. Click “✏ Edit” or double-click on the rule
  3. Change the needed fields
  4. Click “Save”

Deleting a rule

  1. Select the rule in the table
  2. Click “🗑 Delete”
  3. Confirm deletion

Rule order matters!

Rules are checked from top to bottom. The first match triggers, the rest are ignored.

Correct order:

Rule 1: regex "price"    → responds to messages with the word "price"
Rule 2: regex ".*"       → responds to ALL other messages

Changing rule order

Option 1: Drag the rule with the mouse by any part of the row (up/down)

Option 2: Select the rule → click “↑ Up” or “↓ Down”

Enabling/disabling a rule

Click on the checkmark ☑/☐ in the “Enabled” column — the rule will activate or deactivate.

Important: Disabled rules don’t work but remain in the list.

SPINTAX syntax

Main constructs:

  • {option1|option2|option3} — will choose one random option
  • \n — line break (for multi-line messages)
  • !!text — makes the first letter uppercase

Examples:

{Hello|Hi|Good day}
→ Will choose one option: "Hello" or "Hi" or "Good day"
{Hello|Hi}!\n\nHow are you?
→ "Hello!\n\nHow are you?" (with an empty line between)
{Hello|Good day}, this is a backup account.\n\nClient communication is handled on our main accounts.
→ Will create different greeting variations

Tip: Always use the “Preview” button to make sure your text with brackets { | } looks correct and doesn’t contain errors.

Next — launch and testing.