Understanding Rules

1 min read 13 views Dec 24, 2025

Bot Rules & Automation

Rules are the heart of your bot automation. They define how your bot responds to user interactions.

Rule Components

Trigger Type

What activates the rule:

  • Command - Bot commands like /start, /help
  • Text - Specific text messages
  • Regex - Pattern matching with regular expressions
  • Callback - Inline button clicks
  • Any - Matches any message

Trigger Value

The specific value to match. For commands, enter the command without the slash (e.g., "start" for /start).

Action Type

What happens when the rule is triggered:

  • Reply - Send a message back to the user
  • Forward - Forward to another chat
  • Delete - Delete the user's message

Rule Priority

When multiple rules could match, the one with the lowest priority number wins. Use this to create fallback behaviors.

Best Practices

  • Always have a /start command rule
  • Create a catch-all rule with low priority for unknown messages
  • Use descriptive names for easy management
  • Test rules thoroughly before going live

We use cookies

This website uses cookies to ensure you get the best experience on our website. Learn more