Metadata-Version: 2.1
Name: tp-sendnotify
Version: 2026.3.21
Summary: Sending message notification to Discord, Telegram, Slack
Author-email: TP Cyber Security <tpcybersec2023@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/TPCyberSec/TP-sendNotify
Keywords: TPCyberSec
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: json-duplicate-keys
Requires-Dist: requests

<div align="center">
	<h1>TP-sendNotify - PyPI</h1>
	<i>Send notifications to Discord, Telegram, and Slack</i>
	<br><br>
	<a href="https://github.com/TPCyberSec/TP-sendNotify/releases/"><img src="https://img.shields.io/github/release/TPCyberSec/TP-sendNotify" height=30></a>
	<a href="#"><img src="https://img.shields.io/github/downloads/TPCyberSec/TP-sendNotify/total" height=30></a>
	<a href="#"><img src="https://img.shields.io/github/stars/TPCyberSec/TP-sendNotify" height=30></a>
	<a href="#"><img src="https://img.shields.io/github/forks/TPCyberSec/TP-sendNotify" height=30></a>
	<a href="https://github.com/TPCyberSec/TP-sendNotify/issues?q=is%3Aopen+is%3Aissue"><img src="https://img.shields.io/github/issues/TPCyberSec/TP-sendNotify" height=30></a>
	<a href="https://github.com/TPCyberSec/TP-sendNotify/issues?q=is%3Aissue+is%3Aclosed"><img src="https://img.shields.io/github/issues-closed/TPCyberSec/TP-sendNotify" height=30></a>
	<br>
	<a href="#"><img src="https://img.shields.io/pypi/v/TP-sendNotify" height=30></a>
	<a href="#"><img src="https://img.shields.io/pypi/pyversions/TP-sendNotify" height=30></a>
	<a href="#"><img src="https://img.shields.io/pypi/dm/TP-sendNotify" height=30></a>
</div>

---
# 🛠️ Installation
#### From PyPI:
```console
pip install tp-sendnotify
```
#### From Source:
```console
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:
```json
{
    "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
```python
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
```python
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
```python
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](https://github.com/TPCyberSec/TP-sendNotify/tree/2026.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.
