No project description provided
Project description
A package for convenient sending errors/messages
As for now fps_channels supports sending data through Telegram in formats such as .xlsx, .png, plain text.
It supports both async and sync sending.
Example (sync)
class TelegramAlertChannel(TelegramChannel):
SHOW_FILENAME = True
HEADER = "️🆘️ Header text"
alert_channel = TelegramAlertChannel(
bot_token="bot:token",
chat_id=12345
)
alert_channel.send_message("Message")
Example (async)
class AsyncTelegramAlertChannel(AsyncTelegramChannel):
SHOW_FILENAME = True
HEADER = "️🆘️ Header text"
async alert_channel = AsyncTelegramAlertChannel(
bot_token="bot:token",
chat_id=12345
)
await alert_channel.send_message("Message")
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
fps_channels-1.2.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file fps_channels-1.2.tar.gz
.
File metadata
- Download URL: fps_channels-1.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 590d7c5e0c84ede508e7d19d155fbc36b33914511d44a1ff239d04a04582d19f |
|
MD5 | 18ceff0be3ee4952f298d41762f00232 |
|
BLAKE2b-256 | 090821acbda4b9c900a46d3fec799c22006f960465536e2da212da947fd0b490 |
File details
Details for the file fps_channels-1.2-py3-none-any.whl
.
File metadata
- Download URL: fps_channels-1.2-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7b764f58a5f4a5ba0f95d7b4a63c92140b1c4b6dd29ccbc809e6c015fd8cc4e |
|
MD5 | 9f2d65a52143858803ec142e50d86616 |
|
BLAKE2b-256 | d49b6c0ae3a007870f91d70d84dce449c55259a1e0ce2c43b7157bdbb39f30bf |