Skip to main content

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

ma_notification_center-2.1.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

ma_notification_center-2.1.0-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page