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

ma_notification_center-2.1.1.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

ma_notification_center-2.1.1-py3-none-any.whl (4.3 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