Skip to main content

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


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.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

ca_alerts_client-0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file ca_alerts_client-0.2.tar.gz.

File metadata

  • Download URL: ca_alerts_client-0.2.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

Hashes for ca_alerts_client-0.2.tar.gz
Algorithm Hash digest
SHA256 c63bebb214ca3dfc10127209081f30f76e7e4917663c5ec9a07a2cfbd8678020
MD5 5271a58046c9dd88e017dfe0c5c532ea
BLAKE2b-256 25873468299012a3cb850f260391bb2ddaed51ca743efdad1cce30bbf8bbfe31

See more details on using hashes here.

File details

Details for the file ca_alerts_client-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ca_alerts_client-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3ef482db3af270bd1e38eb798a9ec16d6be06eccd98c7c532716b3620a347da8
MD5 1c319d8ca1d80e1652aa518dc66dc4d0
BLAKE2b-256 52bd8a76ada7824d2b15c468a4c9c782415a0a57cdaa146a79da4010bc476a9e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page