Skip to main content

Telegram bot logger that sends strings to telegram chat

Project description

Overview

PyPI Version

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!")
  1. Create bot via bot_father bot in telegram
  2. Insert bot token to class
  3. Insert chat id to class: https://stackoverflow.com/a/32572159/9142932
  4. Create instance of logger via tlg = Logger2tlg(chat_id = "-123456789", bot_id = "BOT TOKEN FROM BOT FATHER")
  5. Send urgent logs via tlg.log("This is message")
  6. You may create multiple loggers to different chats or bots.

Installation

pip install logger2tlg

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

logger2telegram-1.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

logger2telegram-1.0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file logger2telegram-1.0.1.tar.gz.

File metadata

  • Download URL: logger2telegram-1.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for logger2telegram-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ab73deabc08fdfb90e7579763b781f021f7c29798ac3ee81537e1620b538dfc5
MD5 c6a17d782ed0498fe1de5ad14b793f3e
BLAKE2b-256 99ab2caba773ec01d6175f16c37235771f38bbd36315508a8e0970526053ea31

See more details on using hashes here.

File details

Details for the file logger2telegram-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for logger2telegram-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a406d595e78cac18345529b934ea9888b27a6676e3a7a5f34a58309e871dc4c4
MD5 9690ff5f917b93330a716b23b80c98ec
BLAKE2b-256 77c323b349753fdb375a1e1e7cd6823d40ca04b52cfcbf097e8d545ffdfa5765

See more details on using hashes here.

Supported by

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