WordPress Telegram Bot - Rules - Personal Messages / Group Messages


Personal Messages / Group Messages

Back to User Guide

Telegram Bot Rules

Overview | Email Repeater | Personal Messages and Group Messages | Channel MessagesSMS Repeater | SMS Alert | WordPress Repeater | Email Triggers | Keyboard Buttons | Callbacks | Menu Button & Commands


The WordPress Telegram Bot plugin allows to create the rules for responds in Telegram groups - either personally or as a regular message.

What These Rules Do

Personal Message 

Sends a Telegram message to the groups while mentioning a user. The user is not notified directly, but within the group conversation only (this is due to Telegram API limitations, which does not offer such method). You can configure a series of filters, explained below.

Message example
Example of the personal bot respond - Telegram Plugin for WordPress
Example of the personal bot respond

Group Message

Sends a Telegram message to the groups without mentioning specific users. You can configure a series of filters, explained below.

Message example
Example of the group bot respond - Telegram Group Bot Manager
Example of the group bot respond

Setting Up a Rule

The interface for editing both rules (personal and group) is the same.

Setting up a rule - Telegram Bot Plugin for WordPress
Setting up a rule
  • Restrict to group ID - Include one or multiple groups. Must follow the format "-xxxxxxxx" (the character "-" followed by nine numerals). You can acquire the ID by sending the text /getGroupId in the group chat or by checking the plugin log. Note: Leaving this field empty will apply the rule to ALL groups.
  • Personal telegram message / Telegram group message - The message to be sent to the group.
  • Detect phrases - The rule will only run if it DOES include AT LEAST ONE of these words.
  • Status - Set rule as active or paused.
  • 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.  For example if detection is set to 3 the rule will be set on the following 1,4,7.
    • Reset Count - Click the button to set the count of "Execute every" to 0. Example: the rule is executed every 10 messages and 9 have been sent, so it will be executed again in the next message. Click on Reset Count and the rule will require 10 messages to be sent again.
  • Fire Shortcodes - You can place here one or multiple shortcodes which should be executed on the site running the bot once the message has been fired. The output of this shortcode will be printed to the telegram group associated with this message. Have a note that not all shortcodes can be executed in order to print the output in Telegram group. Learn more: WordPress Telegram Bot - How To - Fire Shortcodes. Note: this option was introduced in version 1.0.5.

Keyword Conditions Summary

Within this rule, you can set three conditions involving keywords. They all work in tandem.

For example, if you have these:

  • Detect phrase(s) - "Hi", "Hey", "Hello"
  • Must not include - "admin", "administration"
  • Must include - "help", "urgent"

The following will happen with each message:

  • "Hi, I need urgent help!" - Will trigger the rule
  • "Hello guys this is urgent!" - Will trigger the rule
  • "Hey, this is the admin. Does anyone need help?" - Will not trigger the rule, because it has "admin"
  • "Hey!" - Will not trigger the rule, because it doesn't have "help" or "urgent"
  • "Admin help!" - Will not trigger the rule, because it includes "admin". Additionally, it doesn't have "Hi", "Hey" and "Hello"

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.