Skip to main content

Reusable Telegram and Discord notification helpers

Project description

awesome-notify-bridge

Reusable notification helpers for Telegram Bot API and Discord webhook.

Install

pip install notify-bridge

For local development:

pip install -e .[dev]

Usage

from notify_bridge import send_discord_message, send_telegram_message

send_discord_message(webhook_url="https://discord.com/api/webhooks/...", content="Hello from bot")
send_telegram_message(chat_id="-1001234567890", token="<bot-token>", text="Hello from bot")

Design Notes

  • The package stays project-agnostic: no hardcoded env var names or app-specific wrappers.
  • Each consuming project should map its own configuration into send_telegram_message(...) and send_discord_message(...).
  • Project-specific helpers such as send_signal() or send_hourly() should live outside this package.

Release

Build and validate the package locally:

python -m pip install -e .[dev]
python -m pytest
python -m build
python -m twine check dist/*

Upload to PyPI after creating an API token:

python -m twine upload dist/*

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

awesome_notify_bridge-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

awesome_notify_bridge-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file awesome_notify_bridge-0.1.0.tar.gz.

File metadata

  • Download URL: awesome_notify_bridge-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for awesome_notify_bridge-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5bf352b5e1df414cd85f157b4dff2f9628054c9cdaa0ce10e84e61e91f6ade08
MD5 16989423fd4fbeeb689b9770843b744d
BLAKE2b-256 82795f7e5278a418cb14f546313f00b5929109edb6b534bc94779485abd4f808

See more details on using hashes here.

Provenance

The following attestation bundles were made for awesome_notify_bridge-0.1.0.tar.gz:

Publisher: publish.yml on trunghvbk-afataw/notify-bridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file awesome_notify_bridge-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for awesome_notify_bridge-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9889bdb5c0761474295eea452774480bf4212cd56b75a76c2ffd250d58c0989
MD5 6b267149c9a71683fb41237e6a5934f5
BLAKE2b-256 bad1607d0723e27ca0261310001c92e055844863ebe20bd130256e07daf7675b

See more details on using hashes here.

Provenance

The following attestation bundles were made for awesome_notify_bridge-0.1.0-py3-none-any.whl:

Publisher: publish.yml on trunghvbk-afataw/notify-bridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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