Metadata-Version: 2.1
Name: TP-sendNotify
Version: 2024.9.1
Summary: Sending message notification to Discord, Telegram, Slack
Home-page: https://github.com/truocphan/TP-sendNotify
Author: TP Cyber Security
Author-email: tpcybersec2023@gmail.com
License: MIT
Description: # TP-sendNotify
        
        <p align="center">
            <a href="https://github.com/truocphan/TP-sendNotify/releases/"><img src="https://img.shields.io/github/release/truocphan/TP-sendNotify" height=30></a>
            <a href="#"><img src="https://img.shields.io/github/downloads/truocphan/TP-sendNotify/total" height=30></a>
            <a href="#"><img src="https://img.shields.io/github/stars/truocphan/TP-sendNotify" height=30></a>
            <a href="#"><img src="https://img.shields.io/github/forks/truocphan/TP-sendNotify" height=30></a>
            <a href="https://github.com/truocphan/TP-sendNotify/issues?q=is%3Aopen+is%3Aissue"><img src="https://img.shields.io/github/issues/truocphan/TP-sendNotify" height=30></a>
            <a href="https://github.com/truocphan/TP-sendNotify/issues?q=is%3Aissue+is%3Aclosed"><img src="https://img.shields.io/github/issues-closed/truocphan/TP-sendNotify" height=30></a>
        </p>
        
        ## Installation
        #### From PyPI:
        ```console
        pip install TP-sendNotify
        ```
        #### From Source:
        ```console
        git clone https://github.com/truocphan/TP-sendNotify.git --branch <Branch/Tag>
        cd TP-sendNotify
        python setup.py build
        python setup.py install
        ```
        
        ## Basic Usage
        The default configuration file created at `~/.TPConfig/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")
        ```
        
Keywords: TPCyberSec
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: Implementation :: Jython
Description-Content-Type: text/markdown
