Skip to main content

Simple telegram notifier, ready for shell usage

Project description

Telegram Notifier

This package provides simple notifications usable in python and shell programs

Preparation:

  • Create bot with BotFather and copy the token
  • Send any message to the bot (needed to automatically get chat_id)
  • install module:
pip install telegram-shell-notifier

Usage:

telegram-notify [-h] [--token TOKEN] [--chat-id CHAT_ID] [--parse-mode PARSE_MODE] [FILE]

Notify user with a telegram message.

positional arguments:
  FILE                  File to read from, leave blank for reading from stdin.

optional arguments:
  -h, --help            show this help message and exit
  --token TOKEN         Token of the telegram bot, leave blank for environment variable.
  --chat-id CHAT_ID     Chat id, leave blank for environment variable.
  --parse-mode PARSE_MODE
                        Parse mode, passed directly to telegram bot api. Leave blank for HTMLIt can be Markdown, MarkdownV2, HTML

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

telegram-shell-notifier-0.2.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file telegram-shell-notifier-0.2.tar.gz.

File metadata

  • Download URL: telegram-shell-notifier-0.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.6

File hashes

Hashes for telegram-shell-notifier-0.2.tar.gz
Algorithm Hash digest
SHA256 c0d5b35f68e6c2a2e1218765ae35f908ba77ae3395793fb11830fde234928924
MD5 a80348dc0e7ffc687e150b1acf3cc31d
BLAKE2b-256 900ffd03596562e408023c49b487150c1567de6959d48158d3301309a952b92c

See more details on using hashes here.

Supported by

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