Another telegram bot cli, handling send* methods, for notification purpose.
There is telegram.sh, but
- It doesn't support busybox
- It's GPL
That's why I made this
- busybox
- curl
- jq
~$ docker run --rm -it alpine /bin/sh
/ # apk add --no-cache curl jq
/ # curl https://raw.githubusercontent.com/up9cloud/telegram-bot-send.sh/master/tg.ash -O /usr/local/bin/tg
/ # chmod +x /usr/local/bin/tg
/ # tg --version
tg -h
TELEGRAM_BOT_TOKEN=<bot token>
TELEGRAM_CHAT_ID=<chat id>
tg "hello world"
-
Setup
./config/telegram.org/config.json
{ "token": "012345678:xxxxxxxxxx", "chat_id": "123456789" }