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.4.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file fps_channels-1.4.tar.gz
.
File metadata
- Download URL: fps_channels-1.4.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9fbf309082177de14aff48dddc19728de489acc8a5e0fc14904bdca753e2b1a |
|
MD5 | 817b168be0a2d66b935c867cba02474f |
|
BLAKE2b-256 | b75de41874bb17ee5eef981865fe36a43c913dcf32f207c286331cabccd65372 |
File details
Details for the file fps_channels-1.4-py3-none-any.whl
.
File metadata
- Download URL: fps_channels-1.4-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 | 8ac4423507b4ae6c50f4a34c778ddecda1f55ebf68459f664046b747fd900a2a |
|
MD5 | cb46e879ef1201c55c1845cdfa1388ae |
|
BLAKE2b-256 | 94e42cb06db58854635e0d240fce7a44f2eae3009a791117ae386157392de64c |