Alarms on bot

It is possible to receive alarms as messages in the bot di Telegram.

In order to add your Telegram user inside a rule, you need to follow Databoom configuration and to restart the bot after the release 4.0.46.

Rule creation

To receive alarms on bot, you need to create a rule with a Telegram bot action

Once the action type has been selected, it is possible to proceed as for a normal rule.

In the Receivers  field, all the users set in your Databoom profile are listed. Only users who have restarted (/start command) the bot after Databoom release 4.0.46 are enabled to receive alarms on the bot.

The Subject field is not mandatory, if set it is sent as a different message before the main text.

It is possible to use MarkdownV2 syntax in the message:

*bold \*text*
_italic \*text_
__underline__
~strikethrough~
*bold _italic bold ~italic bold strikethrough~ __underline italic bold___ bold*
[inline URL](http://www.example.com/)
[inline mention of a user](tg://user?id=123456789)
`inline fixed-width code`
```
pre-formatted fixed-width code block
```
```python
pre-formatted fixed-width code block written in the Python programming language
```

Please note:

  • Any character between 1 and 126 inclusively can be escaped anywhere with a preceding '\' character, in which case it is treated as an ordinary character and not a part of the markup.
  • Inside pre and code entities, all '`‘ and ’\‘ characters must be escaped with a preceding ’\' character.
  • Inside (...) part of inline link definition, all ')‘ and ’\‘ must be escaped with a preceding ’\' character.
  • In all other places characters '_‘, ’*‘, ’[‘, ’]‘, ’(‘, ’)‘, ’~‘, ’`‘, ’>‘, ’#‘, ’+‘, ’-‘, ’=‘, ’|‘, ’{‘, ’}‘, ’.‘, ’!‘ must be escaped with the preceding character ’\'.
  • In case of ambiguity between italic and underline entities __ is always greadily treated from left to right as beginning or end of underline entity, so instead of ___italic underline___ use ___italic underline_\r__, where \r is a character with code 13, which will be ignored.

As for other rules, it is possible to refer variables value using the syntax %%variable%% an descrtiptions with %%variable_desc%% and %%variable_device_desc%%. Please note that due characters in description it is possible that the message may be displayed wrong or not sent at all. 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.