Telegram is a free & open-source messenger.
This article describes Telegram configuration for CAS when operating your own CAS server to receive notifications from CAS regarding transactions and other events relevant to your BATM operation.
Server: Notifications can be now delivered via Telegram.
Extensions: You can now talk to extensions via Telegram.
To use the Telegram messenger as a notification method, perform these following steps:
In this example, we'll use "gb_kb_example_bot".
NOTE: the bot name MUST end with the word "bot"!
/newbot [name of your bot]
The BotFather will now ask you to invent a "username".
Save the received HTTP API token.
sudo touch /batm/config/telegram
sudo nano /batm/config/telegram
The resulting file will look like this (using our example):
Save the file (type Ctrl+x and save when asked).
The bot won't work until the CAS Admin service is running!
Open Telegram and locate your new bot:
Click on the start button:
Receive your Telegram User ID in a reply:
Be sure to SAVE the setting (SUBMIT).
Create a Notification Rule:
Set the Action Parameter to the same Telegram User ID previously identified.
You can search the master log for the TelegramBot string. You should see the TelegramBot registering command.
Copyright © 2020-2024 General Bytes USA LLC