MobileArts Notification Center Package
Project description
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()
# Send an email
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>"
)
# Send a Telegram message
notifications.send_telegram(["chat_id"], "Hello from NotificationCenter!")
# Send a Telegram photo
notifications.send_telegram_photo(["chat_id"], "https://example.com/photo.jpg", "Check out this photo!")
# Send a Telegram document
notifications.send_telegram_document(["chat_id"], "https://example.com/document.pdf", "Important Document")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ma_notification_center-2.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38b9923992aef376f12e374e3926c86b4dfceadfc7125ed609466f2b1f246d7a |
|
MD5 | 480d9a22004595b4f49482d7c80715ef |
|
BLAKE2b-256 | 7312192faa0eda78471c9570b4eb0dd59501564dd3b53360e2d233e1afddcea5 |
Close
Hashes for ma_notification_center-2.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8132247a949dd228bb1eb9cb6d71bed954521b96f5429630465db21b111d4097 |
|
MD5 | 3751e20f4b60913cbbfd0f0bf867314c |
|
BLAKE2b-256 | d0d7840de1c067626cd3998bbd50093d09a9f07e50609803887853b2fa1f59ea |