This repository contains three scripts and one systemd-unit file that allow notification of a failed systemd unit via Telegram.
Get your own telegram-bot and chat-id and replace the placeholders in etc/telegram/key.sh then you will be able to:
telegram "message"in any shell script: Your bot will send you "message"unit-status-telegram systemd-unit-namein any shell script: Your bot will send you the status message of systemd-unit- Place
OnFailure=unit-status-telegram@%n.servicein theUnitsection if any systemd-unit and be notified on its failure in telegram