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
- Host: GitHub
- URL: https://github.com/thomasheller/telegram-notify
- Owner: thomasheller
- License: apache-2.0
- Created: 2020-03-08T13:54:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-21T11:31:17.000Z (over 4 years ago)
- Last Synced: 2025-02-13T14:39:23.687Z (4 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.