Metadata-Version: 2.1
Name: error-alerts
Version: 1
Summary: Error alerts via Telegram
Home-page: https://github.com/xjxckk/error-alerts/
Download-URL: https://github.com/xjxckk/error-alerts/archive/refs/tags/v1.tar.gz
License: UNKNOWN
Platform: UNKNOWN
Description-Content-Type: text/markdown

### error-alerts
Python error alerts via Telegram

Installation:
`pip install error-alerts`

Usage:
```
import alerts

alerts = alerts.setup(telegram_token='TELEGRAM_TOKEN', telegram_channel=TELEGRAM_CHANNEL_ID, full_error=True)

try:
    1 / 0
except Exception as error:
    alerts.send(title='Test', exception=error)
    # raise Exception('Raiser') from exception # If you want to raise the exception rather than continue
```

Output:
```
Test: Traceback (most recent call last):
  File "A:\Code\Python\packages\handler\test.py", line 6, in <module>
    1 / 0
ZeroDivisionError: division by zero
```

Prints that in console and sends a Telegram alert to the channel you specified

