Skip to content

up9cloud/telegram-bot-send.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegram-bot-send.sh

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

Dependencies

Installation

~$ 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

Usage

tg -h
TELEGRAM_BOT_TOKEN=<bot token>
TELEGRAM_CHAT_ID=<chat id>
tg "hello world"

Dev memo

  • Setup ./config/telegram.org/config.json

    {
      "token": "012345678:xxxxxxxxxx",
      "chat_id": "123456789"
    }

TODO