Reusable Telegram and Discord notification helpers
Project description
awesome-notify-bridge
Simple notification helpers for sending messages via Telegram Bot API and Discord webhooks.
Installation
pip install awesome-notify-bridge
Quick Start
from notify_bridge import send_telegram_message, send_discord_message
# Send a Telegram message
send_telegram_message(
chat_id="-1001234567890",
token="your-bot-token",
text="Hello from your bot!"
)
# Send a Telegram message with images
send_telegram_message(
chat_id="-1001234567890",
token="your-bot-token",
text="Chart update",
image_paths=["/path/to/chart.png"]
)
# Send a Discord message
send_discord_message(
webhook_url="https://discord.com/api/webhooks/...",
content="Hello from your bot!"
)
API Reference
send_telegram_message(chat_id, token, text, image_paths)
Sends a text message (and optional images) to a Telegram chat using the Bot API.
| Parameter | Type | Default | Description |
|---|---|---|---|
chat_id |
str |
required | Target chat ID (group, channel, or private) |
token |
str |
required | Telegram bot token from @BotFather |
text |
str |
"" |
Message content. Long messages are split automatically |
image_paths |
list[str] |
None |
Local file paths of images to send after the text |
send_discord_message(webhook_url, content, image_paths, logger)
Posts a message to a Discord channel via webhook.
| Parameter | Type | Default | Description |
|---|---|---|---|
webhook_url |
str |
required | Discord webhook URL |
content |
str |
required | Message content. Long messages are split automatically |
image_paths |
list[str] |
None |
Local file paths of images to attach |
logger |
Callable |
None |
Optional callback for logging send status |
Links
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file awesome_notify_bridge-0.1.7.tar.gz.
File metadata
- Download URL: awesome_notify_bridge-0.1.7.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02b6a1f7f7e11b92a1a64c5f3165a4c0091741db91cd68f90fe1aad844b1b9d0
|
|
| MD5 |
e89b75ef992f36ed14c3d38bf9f36336
|
|
| BLAKE2b-256 |
ddca2bafe50f4b5dec64156d06e195ecd3c072e3a1d59c27fa4e086635ada2e5
|
Provenance
The following attestation bundles were made for awesome_notify_bridge-0.1.7.tar.gz:
Publisher:
publish.yml on trunghvbk-afataw/notify-bridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
awesome_notify_bridge-0.1.7.tar.gz -
Subject digest:
02b6a1f7f7e11b92a1a64c5f3165a4c0091741db91cd68f90fe1aad844b1b9d0 - Sigstore transparency entry: 1315309272
- Sigstore integration time:
-
Permalink:
trunghvbk-afataw/notify-bridge@1a8ac113a295604fdd01bd88fb4408b0ec09be53 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/trunghvbk-afataw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1a8ac113a295604fdd01bd88fb4408b0ec09be53 -
Trigger Event:
push
-
Statement type:
File details
Details for the file awesome_notify_bridge-0.1.7-py3-none-any.whl.
File metadata
- Download URL: awesome_notify_bridge-0.1.7-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70c39f558d4e5aa7228515cf99037a0c16f2af24515345943428ee41027167bb
|
|
| MD5 |
2f368f8cf243669abef3a3a856b001bc
|
|
| BLAKE2b-256 |
cd3b5cd4985fbd7778c785826ac3e4ab8e99ebf604d0bd6c3ae3a2ac342d17d6
|
Provenance
The following attestation bundles were made for awesome_notify_bridge-0.1.7-py3-none-any.whl:
Publisher:
publish.yml on trunghvbk-afataw/notify-bridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
awesome_notify_bridge-0.1.7-py3-none-any.whl -
Subject digest:
70c39f558d4e5aa7228515cf99037a0c16f2af24515345943428ee41027167bb - Sigstore transparency entry: 1315309414
- Sigstore integration time:
-
Permalink:
trunghvbk-afataw/notify-bridge@1a8ac113a295604fdd01bd88fb4408b0ec09be53 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/trunghvbk-afataw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1a8ac113a295604fdd01bd88fb4408b0ec09be53 -
Trigger Event:
push
-
Statement type: