ma_notification_center
ma-notifications is a Python package that provides a notification center for sending various types of notifications.
Installation
You can install ma-notification-center using pip:
pip install ma_notification_center
Usage
Here's an example of how to use ma-notification-center:
from ma_notification_center import notificationcenter
notifications = notificationcenter.Notifications()
notifications.send_email(
to_emails=["recipient1@example.com"],
cc_emails=["recipient2@example.com"],
bcc_emails=[],
subject="Notification",
body_text="This is a notification email.",
body_html="<p>This is a notification email.</p>"
)
notifications.send_telegram(["chat_id"], "Hello from NotificationCenter!")
notifications.send_telegram_photo(["chat_id"], "https://example.com/photo.jpg", "Check out this photo!")
notifications.send_telegram_document(["chat_id"], "https://example.com/document.pdf", "Important Document")