Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreas-timm/tm
Simple readable utility on bash that sends messages like a bot in telegram.
https://github.com/andreas-timm/tm
bash messaging sh telegram telegram-bot-api
Last synced: about 2 months ago
JSON representation
Simple readable utility on bash that sends messages like a bot in telegram.
- Host: GitHub
- URL: https://github.com/andreas-timm/tm
- Owner: andreas-timm
- License: cc-by-4.0
- Created: 2024-06-16T19:38:58.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-27T09:18:29.000Z (6 months ago)
- Last Synced: 2024-06-27T10:42:39.463Z (6 months ago)
- Topics: bash, messaging, sh, telegram, telegram-bot-api
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Send as bot
Simple readable utility on bash that sends messages like a bot in telegram.## Features
- `STDIN` pipe support
- Credentials:
- Environment variables
- [pass](https://www.passwordstore.org/) (the standard unix password manager)## Installation
`cp ./tm.sh /usr/local/bin/tm`## Environment files
- `__SCRIPT_DIR__/.env`
- `$HOME/.config/tm/env`## Help
```
tm -h
Usage: tm |->
ENVIRONMENT:
MESSAGE_PREFIX
CHAT_ID
API_ID
or PASS-NAME: tm/ENVIRONMENT
```## Usage
- `tm 'test notification'`
- `echo 'test notification' | tm`## License
[![BSD 3-Clause][bsd-3-clause-shield]][bsd-3-clause]This source code is licensed under the [3-Clause BSD license][bsd-3-clause].
[bsd-3-clause]: https://opensource.org/licenses/BSD-3-Clause
[bsd-3-clause-shield]: https://img.shields.io/badge/License-BSD_3--Clause-orange.svg- [LICENSE](https://github.com/andreas-timm/tm/blob/main/LICENSE)
- Author: [Andreas Timm](https://github.com/andreas-timm)