A bunch of a script that launches a server socket and a telegram bot that sends a notification.
This program is designed to control the continuity of the broadcast automation system "Cinegy". Multiviewer module sends a request to the port of the server on which the socket script is running, then the script, via the telegram bot sends notification.
- Adding to the virtual environment:
pip install -r reqs.txt
- In the config.py file add :
token = "*bot API token*"
- Run on the server server_socket.py и bot.py.
Use the command "/send_me_alarm" to add your chat_id to the notification mailing list.
"/stop_send_alarm", to remove your chat_id from the notification mailing list.
socket, threading, datetime, telebot, ast.