thomasheller / telegram-notify

Minimal wrapper around Telegram API for sending notifcation messages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

telegram-notify

Send stdin as a Telegram message to a specific user.

Requirements

  • Telegram bot (API token)
  • python
  • python-requests

Setup

Set API token and chat ID in notify.py.

Make sure notify.py is executable.

Usage

Run the following command to send a single Telegram message:

echo Hello world | ./notify.py

Alternatively, put notify.ph in $PATH and pipe the output of any command to notify_loop.sh:

some-command | ./notify_loop.sh

That will send one Telegram message per input line.

About

Minimal wrapper around Telegram API for sending notifcation messages

License:Apache License 2.0


Languages

Language:Python 87.2%Language:Shell 12.8%