This is an old revision of the document!
Notification groups describe how the messages and alarms will be delivered to users.
There are the following ways:
The steps to create a Telegram Notification are:
1. Create a channel to Telegram and a bot
2. Configure the channel to NeMo
3. Create the Notification group
Create a channel to Telegram and a bot
Fisrt step is to create a channel. Telegram members will join to the channel to read the Telegram nofitication sent by NeMo through the bot https://telegram.org/faq_channels):
For more information about bot please visit https://core.telegram.org/bots
Second step is to create a bot to add as administrator member of the channel. Open Telegram BotFather and create the bot
/start /newbot <choose the name and the username of the bot that will be configured on NeMo –note the username must end with bot>
http://docs.observium.org/alerting_transports/#telegram
Add the bot to the channel.
Retrieve the chat_id of the channel:
With the NeMo shell (or any other linux machine) you need to find the chat_id related to the channel:
curl https://api.telegram.org/bot<ADD the Token here>/getUpdates?offset=0
{“ok”:true,“result”:[{“update_id”:611548852, “channel_post”:{“message_id”:2,“chat”:{“id”:-1001148557862,“title”:“Channel-test”,“type”:“channel”},“date”:1499934011,“text”:“/my_ip”,“entities”:[{“type”:“bot_command”,“offset”:0,“length”:6}]}}]}[
In this case the chat id is: -1001148557862
Now you are ready to configure telegram notification to NeMo.