Create three scripts in python and place them inside the folder downloaded in Step 2:
to create a group,
to restrict commenting upon the completing of the incident and changing its state to Completed.
to delete a Telegram group.
Run the first script "create" manually. The system will require the user's authorization, do it manually.
A "Router Session On" file is created.
On your instance, go to the System Properties (sys_property) table, set the value true for the itsm.telegram.swarming property.
Create a new server in the MID Server (MID_server) table.
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 3.
Repeat the Step 8 to add the scripts to close and delete a group.
Go to System Properties(sys_property) table and add the IDs of the three created scripts to the corresponding properties as their values.
Go to a major incident form. Now there appears a Start Swarming button. Click it for the first time and a record with a corresponding name appears in the MID Queue (sys_mid_queue) table.
Create a closeGroup record in the MID Queue (sys_mid_queue) table.
Create a deleteGroup record in the MID Queue (sys_mid_queue) table.