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 Notifications
# Initialize NotificationCenter
notification_center = Notifications()
# Send an email
notification_center.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
notification_center.send_telegram(["chat_id"], "Hello from NotificationCenter!")
# Send a Telegram photo
notification_center.send_telegram_photo(["chat_id"], "https://example.com/photo.jpg", "Check out this photo!")
# Send a Telegram document
notification_center.send_telegram_document(["chat_id"], "https://example.com/document.pdf", "Important Document")
Make sure to import the Notifications class from notificationcenter.notificationcenter and instantiate it before using the send_ functions.
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-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc32ee332cc8bcbcac4acc58a371296970538db97848f2c598d92b34723f65d5 |
|
MD5 | 6478a232c207f0b53c3db320033d04c8 |
|
BLAKE2b-256 | 8ce60d1b9dbad4119669748df7983eeea4fc02c913dfe1d0a1d192cf1d20f06e |
Close
Hashes for ma_notification_center-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50db288e8950806093d80800b9b7fc5efd7d810596850c005372c5b62eb5c1fb |
|
MD5 | 269e24f9237c7d021cffa7807dd38460 |
|
BLAKE2b-256 | e2e91ee04e81da6b80698a04425217f87be713fa0013d80c4591b5e9516b80aa |