Must include - The rule will only run if the message DOES include one of these words.Must not include - The rule will only run if the message DOES NOT include ANY of these words.The sender name will appear in the SMS text message send to the phone number. If it has more, the message will not be sent (due a restriction by Amazon). Sender name - Can only contain 11 characters or less.SMS message content - Message to be sent.Detect phrase/s - The rule will only run if the message DOES include AT LEAST ONE of these words.Include country code, but without the "+" symbol. Send to phone number/s - List all phone numbers that will receive the message.To configure it navigate to Admin Dashboard → CM Telegram Bot → Settings → SMS Alerts tab. The rule SMS Alerts sends an SMS to one or more mobile phone numbers when a message with specific words are sent in any group the bot is in. Note: leaving this field empty will apply the rule to ALL groups, where the bot is set as administrator. Must follow the format "-xxxxxxxx" (the character "-" followed by nine numerals). This field can contain multiple IDs for different groups. Telegram group ID - Here you need to write ID of your Telegram group. There you can find the following fields and options: To configure it navigate to Admin Dashboard → CM Telegram Bot → Settings → Email Repeater tab. This rule sends an email for every group message. In this use case we will consider sending SMS or Email alerts by the bot on Telegram with the message containing the words or phrases from the rule. If someone writes "help" in a group, send an SMS with contact information to a chosen number.Send all messages from a group to an email address of choice, except it they have the word "hey" or "hi".Now it's time to teach our bot to respond on some definite words or phrases. Rules are the main features of the Telegram Bot plugin and you can create multiple of them. Then fill corresponding fields and click Save: When you get SNS API Key and Secret, navigate to Admin Dashboard → CM Telegram Bot → Settings → API Settings tab. You can also check our guide about it: General Support - Enabling SMS Messages (Amazon SNS API) You can set up Amazon SNS API by following the link and learn more about it in official documentation. It's needed for plugin to be able to send SMS messages. You need to create an Amazon SNS API and connect it to the plugin via the plugin's settings. SMS: Connecting Plugin to Amazon SNS Service Then choose the bot and click Save and Close. Navigate to the group settings, click Manage Group → Administrators → Add Administrator. Now you need to find your bot, choose it and click Create.Īnd the final step: setting the bot as administrator. On the next step invite new members to the group. In the pop-up window you need to write a name for your group and click Next. Open the Telegram's menu and click New group. So, next step - you need to create a new group (if you haven't done it yet) and add your bot as administrator. It can only perform actions if it has admin permissions. The Telegram Bot plugin requires the bot to be part of one or multiple groups to fetch messages and interact with users. Note: the following steps are shown in a desktop application, as there's no possibility to set a bot as admin on the web version of Telegram. There in the section Telegram API Settings you need to fill the following fields:īot Username - Here you need to write bot username without In our example it's CmindsBot. For example: /token Copy this token and navigate to the plugin: Admin Dashboard → CM Telegram Bot → Settings → API Settings tab. You can find it on the message logs. Alternatively, message it, with xxx being the bot name. Your bot has been created! You will now receive the access token. This name can't contain spaces and must end with "bot". Example: CmindsBot. In order to create a Telegram Bot, follow these steps:ġ) Contact the user Telegram and start a chat.Įither follow the link or look for its username.Ģ) Write /newbot to and choose a friendly bot name. Friendly names can contain spaces. Example: Creative Minds Bot.ģ) Specify the bot username. If you feel this article is deprecated, please get in touch with us. This feature depends on Telegram, so steps and interface may change at any time. Official Telegram documentation: How To Create a Bot | Commands
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |