Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To set up a Telegram group, do the following:

  1. Set up a MID account
  2. Download Simple MID Server.
  3. Create three scripts in python and place
  4. the scripts
  5. them inside the folder downloaded in Step 2:
    • to create
  6. , close and
    • a group,
    • to restrict commenting upon the completing of the incident and changing its state to Completed.
    • to delete a Telegram group
  7. inside this folder
    • .


  8. Code Block
    // To create a group// To close a group// To delete a group
    Run the first script "create" manually. The system will require the user's authorization, do it manually.
  9. A "Router Session On" file is created.
  10. On your instance, go to the System Properties Properties (sys_property) table, set the value true for the itsm.telegram.swarming property.
  11. Create a new server in the MID Server (MID_server) table.
  12. Create a script to create a group in Telegram in the MID Scripts (MID_script) table. To do so, click New and in the new script form add a name of the script (for example, createTelegram) and in the Script field add the path to the script on your computer, created at the step Step 3.
  13. Repeat the step Step 8 to add the scripts to close and delete a group.
  14. Go to System Properties (sys_property) table and add the IDs of the three created scripts to the corresponding properties as their values.
  15. Go to a major incident form. Now there appears a Start Swarming buttonClick it for the first time and a record with a corresponding name appears in the MID Queue (sys_mid_queue) table.
  16. Create a closeGroup record in the MID Queue (sys_mid_queue) table. 
  17. Create a deleteGroup record in the MID Queue (sys_mid_queue) table.