Overview
This package includes simple pure python telegram bot that sends logs to chat.
Algorithm
from logger2telegram import Logger2tlg
tlg = Logger2tlg(chat_id="123456789", bot_id="123456789:ABCDEF1234567890ABCDEF1234567890ABC")
tlg.log("Hello world!")
- Create bot via bot_father bot in telegram
- Insert bot token to class
- Insert chat id to class: https://stackoverflow.com/a/32572159/9142932
- Create instance of logger via
tlg = Logger2tlg(chat_id = "-123456789", bot_id = "BOT TOKEN FROM BOT FATHER") - Send urgent logs via
tlg.log("This is message") - You may create multiple loggers to different chats or bots.
Installation
pip install logger2tlg
Metadata
Release files for logger2telegram 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| logger2telegram-1.0.1.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| logger2telegram-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / logger2telegram-1.0.1.tar.gz
| Download URL | logger2telegram-1.0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab73deabc08fdfb90e7579763b781f021f7c29798ac3ee81537e1620b538dfc5
|
|
BLAKE2b-256 checksum How to use checksums |
99ab2caba773ec01d6175f16c37235771f38bbd36315508a8e0970526053ea31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.2
|
Release files / logger2telegram-1.0.1-py3-none-any.whl
| Download URL | logger2telegram-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a406d595e78cac18345529b934ea9888b27a6676e3a7a5f34a58309e871dc4c4
|
|
BLAKE2b-256 checksum How to use checksums |
77c323b349753fdb375a1e1e7cd6823d40ca04b52cfcbf097e8d545ffdfa5765
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.2
|
Security for logger2telegram 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.