Skip to content

Library for sending simple text notifications to ntfy.sh and Telegram channels.

License

Notifications You must be signed in to change notification settings

ljbcloud/telentfy

Repository files navigation

telentfy

Library for sending simple text notifications to ntfy.sh and Telegram channels.

Installation

pip install telentfy==0.0.6

Usage

CLI

# print the currently installed version
telentfy version

# send a ping to all configured channels/topics
telentfy ping

Library

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")

About

Library for sending simple text notifications to ntfy.sh and Telegram channels.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages