You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
727 B

### HowTo Notary Node Alerts and Stats via Telegram Bot
# Read
https://github.com/rahiel/telegram-send#installation
# Install PY/PIP3 + Telegram-Send
$ sudo apt install python3-pip
$ sudo pip3 install --upgrade pip
$ sudo pip3 install telegram-send
# Install Chronic for pipage
$ sudo apt install moreutils
# Read
https://core.telegram.org/bots
# Talk to the boss and create a new bot, note API-Key
https://telegram.me/BotFather
# Setup Telegram-Send (this is PM setup, for group or channel RTFM, its easy)
$ telegram-send --configure
# Try it
$ telegram-send "BOO!"
# Fixed monospace font
$ telegram-send --pre "Hello World!"
# For crontab use like this
chronic ~/nntools/nodeMined 2>&1 | telegram-send --pre --stdin