No project description provided
Project description
Клиент для коммуникации с сервисом ca-alerts
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ca_alerts_client-0.1.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file ca_alerts_client-0.1.tar.gz
.
File metadata
- Download URL: ca_alerts_client-0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88577106bd7dadeb0326db35eb1c5f8d3a2902a9c921f2ede6478698c216e2bc |
|
MD5 | c3550fd4c0b25c1d9c9b0bf567b12c9e |
|
BLAKE2b-256 | 522c027ce0457974a8ba582e1cf6fc3baa17f2ce35ca715aa5ba6db335f6a5bc |
File details
Details for the file ca_alerts_client-0.1-py3-none-any.whl
.
File metadata
- Download URL: ca_alerts_client-0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 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 | 94a0461abd5f0ec6dce057ec933a333715794e2bdf99f4aa4383ef9270919dd6 |
|
MD5 | 7e158eaf47262082ae41c378d2811d83 |
|
BLAKE2b-256 | 852a5550d335d1f9ee15f0841d2c5fdfc7b1a4cda5f35ac2959c511879e6cc11 |