Skip to main content

Handle errors and send it Telegram group!

import Alerter

tg_alert = Alerter(bot_token=’YOUR_BOT_TOKEN’, chat_id=’YOUR_CHAT_ID’) #or tg_alert = Alerter.from_environment() #Recommend

method_1: tg_alert.send_message(chat_id=111222333, text=’Message text’) #or method_2: as decorator @tg_alert def some_func_that_can_raise_an_exception(): raise RuntimeError(‘this is an exception’)

We could use in except scope as:
except Exception as e:

return tg_alert.custom_alert(text=e)

Metadata

Release files for telegram-error-alerter 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for telegram-error-alerter 1.0.1
File Size Uploaded Provenance Actions
telegram-error-alerter-1.0.1.tar.gz 7.1 kB Without provenance Details for telegram-error-alerter-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for telegram-error-alerter 1.0.1
File Interpreter ABI Platform Actions
telegram_error_alerter-1.0.1-py3-none-any.whl Python 3 none any Details for telegram_error_alerter-1.0.1-py3-none-any.whl

Total release size: 14.3 kB

Release files / telegram-error-alerter-1.0.1.tar.gz

Download URL telegram-error-alerter-1.0.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8a93e0a67da873cd1f1355c150caa47c92dafc5b4f0dfd2aa9e050844e80e9a8
BLAKE2b-256 checksum
How to use checksums
5937da6ac4f3c85146725989d98370d1ef6908a8c2d43036d9f1b5b077751927
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / telegram_error_alerter-1.0.1-py3-none-any.whl

Download URL telegram_error_alerter-1.0.1-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf7d7f22c9a5d80dc07bc2d56b2a1119aa262c1eefff2ca722d19cb7ea1fae89
BLAKE2b-256 checksum
How to use checksums
fb0013b6c4c4b1dfbd60e4630ea6690173bf528b286cda89d74f97347382652f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Security for telegram-error-alerter 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page