Integration with Telegram

Smartswitch could be intergated with Telegram for notification sending and interactive reports generation.
For this purpose, the Telegram's system of chats and bots is used.

The sequence of actions to setup the integration:

  1. Create a bot using Telegram means (see How to create a Telegram bot).
    Record its token.
  2. In Smartswitch's web-interface add Telegram bot and specify its token, which you got in i.1.
  3. Create chat using Telegram means.
    Add a bot which was created in i.1.
  4. Obtain chat's ID by sending the /start command into the group chat.
  5. Bot, which was added in i.1, will answer:
    ChatID: -1002388910615
    
  6. in the Smartswitch UI add a new Telegram chat and set its ID to value obtained in i.5.

After this Smartswitch can:

Send notifications on behalf of this bot to chosen chat.

Currently Smartswitch can send the following notifications:

Get commands from users and display report interactively.

Currently Smartswitch understands the following commands:

Notice: As far as you are configuring both on Telegram and Smartswitch side,
you can be sure, that you're granting the access rights to appropriate users.
Nobody from foreign users or chats won't be able to get your confidential information.
Smartswitch sends notifications and responds to commands only to authorized chats.

Русский перевод