Report the client connected to your SSH server
You'll need a Token and a Channel Id from Telegram. There is plenty of tuto, ask google for that.
Once you have them, rename the credentials.json_example to credentials.json and update it with your credentials.
poetry install
poetry run python main.py
chmod +x run.sh
Let's check for new client or disconnected one every 5 minutes.
crontab -e
*/5 * * * * /PATH/TO/YOUR/DIRECTORY/run.sh >> ~/cron.log 2>&1
If you want to provide the device name in your messages, rename the mapping.json_example to mapping.json and update it your devices values.