WordPress Telegram Bot - Rules - Rules Overview, Creating and Editing

Rules Overview

Back to User Guide


This guide covers what are rules and how you can edit them. This information applies to all rules in the plugin.

Table of Contents

  1. What are Telegram Bot Rules
  2. Creating, Duplicating and Deleting a Rule
  3. Common Rule Fields
    1. Placeholders

What are Telegram Bot Rules?

Rules are the main features of the WordPress Telegram Bot plugin and you can create multiple of them.


  • Send all messages from a group to an email address of choice, except it they have the word "hey" or "hi".
  • If someone writes "help" in a group, send an SMS with contact information to a chosen number.
Setting up the rules for Group Messages - WordPress Telegram Plugin
Setting up the rules for Group Messages

You can create rules in the following features:

  • WordPress Repeater – Store all messages from a specific group in WordPress and output the content using a shortcode.
  • Email Repeater – Send messages sent in a Telegram group to one or many emails. Mark words as “stop words” to prevent them from triggering the bot.
  • Mention Messages – Mention a user after certain words or expressions are sent to the group.
  • Group Messages – Emit message to all users based on certain conditions.
  • Channel Messages - Post an automatic message in a public channel on certain conditions. Note: this feature was introduced in version 1.0.6.
  • SMS Repeater – Send a copy of Telegram group conversations to a mobile device.
  • SMS Alert – Send notifications to multiple phone devices whenever certain keywords are used.

Creating, Duplicating and Deleting a Rule

Every tab comes with an empty rule. 

Creating, duplicating and deleting a rule - Telegram WordPress Widget
Creating, duplicating and deleting a rule
  1. Create more rules at any time by clicking the button Add rule.
  2. Duplicate rules - Useful when using similar rules (for instance, with the same message but different recipients)
  3. Delete rules - Note that there is no confirmation

All changes (including deletion) are only performed after you click the Save button. 

Saving the changes - Telegram Plugin for WordPress
Saving the changes

Rule Fields

Every rule has different fields to fill, and these are explained in their respective articles.

Common Fields

Some fields are common to most rules.

  • Status - Set that specific rule as active or paused
  • Telegram group/channel ID - Telegram group ID must follow the format "-xxxxxxxx" (the character "-" followed by nine numerals). You can acquire it by sending the text /getGroupId in the group chat or by looking at the plugin log. Telegram channel ID is a part of the channel link that goes right after "t.me/".
  • Sender Name - The contact name shown as the message sender
  • Stop word(s) / Must not include - The rule will only run if it DOES NOT include ANY of these words
  • Must include - The rule will only run if it DOES include ALL of these words
  • Snooze for - Set a number in hours. After the rule is activated, it will "snooze" for x hours before being ready to activate again. Useful to avoid spamming
  • Execute every - Execute the rule after every x times the trigger is activated
  • Reset Count - Click the button to set the count to 0
  • Message template - May support placeholders (learn more below)

TIP: Placeholders

Placeholders help you write down content dynamically. When the message is sent, every placeholder is replaced with the relevant content. 

  • {Text} - Telegram message content
  • {sender} - Sender username
  • {GroupID} - Telegram group ID
  • {img} - Image, if it was included in the message
  • {date} - Telegram message date

More information about the WordPress Telegram Bot plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.