telegram-send/README.md

41 lines
822 B
Markdown
Raw Permalink Normal View History

2023-11-27 09:44:24 +11:00
# Overview
Super simple curl wrapper to send Telegram messages.
# Requirements
- [jq](https://jqlang.github.io/jq/)
- curl
# Usage
```text
2023-11-27 10:43:56 +11:00
usage: ./telegram-send.sh [OPTIONS] "text to send"
2023-11-27 09:44:24 +11:00
Instructs telegram bot to send the supplied message to a chat.
2023-11-27 10:43:56 +11:00
OPTIONS
-b filename Override default bot token file (/Users/rob/.telegram/bottoken)
-c filename Override default chat id token file (/Users/rob/.telegram/chatid)
2023-11-27 09:44:24 +11:00
Needs these files to work:
2023-11-27 10:43:56 +11:00
File with telegram bot token: /Users/rob/.telegram/bottoken
File with telegram chat id: /Users/rob/.telegram/chatid
2023-11-27 09:44:24 +11:00
```
# Example
## CLI command
```text
rob@crom:telegram-send$ ./telegram-send.sh "this is a test"
rob@crom:telegram-send$
```
## Telegram output
![telegramoutput](img/this_is_a_test.png "telegram output")