Library for sending simple text notifications to ntfy.sh and Telegram channels.
pip install telentfy==0.0.6
# print the currently installed version
telentfy version
# send a ping to all configured channels/topics
telentfy ping
from telentfy import Notifier, TelentfySettings
# load settings from environment (e.g. .env)
settings = TelentfySettings()
# override environment
settings.NTFY_TOPIC = "testing123"
settings.NTFY_URL = "https://ntfy.sh"
notifier = Notifier(settings)
notifier.send_notification("ping")