An open API service indexing awesome lists of open source software.

https://github.com/thomasheller/telegram-notify

Minimal wrapper around Telegram API for sending notifcation messages
https://github.com/thomasheller/telegram-notify

Last synced: 2 months ago
JSON representation

Minimal wrapper around Telegram API for sending notifcation messages

Awesome Lists containing this project

README

        

# 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:

```bash
echo Hello world | ./notify.py
```

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

```bash
some-command | ./notify_loop.sh
```

That will send one Telegram message per input line.