Metadata-Version: 2.4
Name: awesome-notify-bridge
Version: 0.1.6
Summary: Reusable Telegram and Discord notification helpers
Author: AFATAW Team
Project-URL: Homepage, https://github.com/trunghvbk-afataw/notify-bridge
Project-URL: Repository, https://github.com/trunghvbk-afataw/notify-bridge
Project-URL: Issues, https://github.com/trunghvbk-afataw/notify-bridge/issues
Keywords: discord,notifications,telegram,webhook
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Communications :: Chat
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.31.0
Provides-Extra: dev
Requires-Dist: build>=1.2.2; extra == "dev"
Requires-Dist: pytest>=8.3.0; extra == "dev"
Requires-Dist: twine>=5.1.1; extra == "dev"

# awesome-notify-bridge

Simple notification helpers for sending messages via **Telegram Bot API** and **Discord webhooks**.

## Installation

```bash
pip install awesome-notify-bridge
```

## Quick Start

```python
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 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, **kwargs)`

Sends a text message to a Telegram chat using the Bot API.

| Parameter | Type | Description |
|-----------|------|-------------|
| `chat_id` | `str` | Target chat ID (group, channel, or private) |
| `token` | `str` | Telegram bot token from @BotFather |
| `text` | `str` | Message content |

### `send_discord_message(webhook_url, content, **kwargs)`

Posts a message to a Discord channel via webhook.

| Parameter | Type | Description |
|-----------|------|-------------|
| `webhook_url` | `str` | Discord webhook URL |
| `content` | `str` | Message content |

## Links

- [PyPI](https://pypi.org/project/awesome-notify-bridge/)
- [Repository](https://github.com/trunghvbk-afataw/notify-bridge)
- [Report an Issue](https://github.com/trunghvbk-afataw/notify-bridge/issues)
