Sending message notification to Discord, Telegram, Slack
Project description
🛠️ Installation
From PyPI:
pip install tp-sendnotify
From Source:
git clone https://github.com/TPCyberSec/TP-sendNotify.git --branch <Branch/Tag>
cd TP-sendNotify
python -m build
python -m pip install dist/tp_sendNotify-<version>-py3-none-any.whl
Basic Usage
The default configuration file created at ~/TPCS-ENV/TP-sendNotify/sendNotify.json has the following content:
{
"Discord": {
"<BOT_NAME>": {
"WEBHOOK-URL": "https://discord.com/api/webhooks/<WEBHOOK_ID>/<WEBHOOK_TOKEN>"
},
...
},
"Telegram": {
"<BOT_NAME>": {
"BOT-TOKEN": "<BOT_TOKEN>",
"CHANNEL-USERNAME": "<CHANNEL_USERNAME>"
},
...
},
"Slack": {
"<BOT_NAME>": {
"WEBHOOK-URL": "https://hooks.slack.com/services/<WORKSPACE_ID>/<CHANNEL_ID>/<TOKEN>"
},
...
}
}
toDiscord(bot_name, message, SidebarColor=0xcc0500, ConfigFile=None)
Sending message notification to Discord
import TP_sendNotify
TP_sendNotify.toDiscord("<BOT_NAME>", "This message notification has been sent to the Discord using TP-sendNotify")
toTelegram(bot_name, message, MessageFormat=None, ConfigFile=None)
Sending message notification to Telegram
import TP_sendNotify
TP_sendNotify.toTelegram("<BOT_NAME>", "This message notification has been sent to the Telegram using TP-sendNotify")
toSlack(bot_name, message, ConfigFile=None)
Sending message notification to Slack
import TP_sendNotify
TP_sendNotify.toSlack("<BOT_NAME>", "This message notification has been sent to the Slack using TP-sendNotify")
📝 CHANGELOG
TP-sendNotify v2026.3.21
- Initial release of TP-sendNotify. This version includes the basic functionality to send notifications to Discord, Telegram, and Slack using a configuration file.
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 tp_sendnotify-2026.3.21.tar.gz.
File metadata
- Download URL: tp_sendnotify-2026.3.21.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4548564b83c2ab45ac03e69035ce265501b070456798457efe87e036bce639cc
|
|
| MD5 |
12883cbc7d5a6a33354c354705e19b6d
|
|
| BLAKE2b-256 |
ad0f0dc680ce3cd8058558a63a8e3fc5fbdbc2fffe6ab380aecec4f204e3e772
|
File details
Details for the file tp_sendnotify-2026.3.21-py3-none-any.whl.
File metadata
- Download URL: tp_sendnotify-2026.3.21-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b73cc2b126ceb47e5a39e29a339642d0a9bef94c24f67e7ad9ed9ad104b0c93
|
|
| MD5 |
b042aba201b2ca6394552c9f3cfcce2e
|
|
| BLAKE2b-256 |
75b0a7c38b47c252c65638d2d978a20a87121e1b0d5b4a3f4804d836d6263c30
|