Balance of Satoshis Telegram Bot
Project and readme: https://github.com/alexbosworth/balanceofsatoshis
RaspiBlitz install script: https://github.com/rootzoll/raspiblitz/blob/v1.6/home.admin/config.scripts/bonus.bos.sh usage:
Install Balance of Satoshis from the SERVICES menu
or on older versions:
1
# update NodeJS
2
wget https://raw.githubusercontent.com/rootzoll/raspiblitz/v1.6/home.admin/config.scripts/bonus.nodejs.sh
3
bash bonus.nodejs.sh off
4
bash bonus.nodejs.sh on
5
# download bos install script
6
wget https://raw.githubusercontent.com/rootzoll/raspiblitz/v1.6/home.admin/config.scripts/bonus.bos.sh
7
# run
8
bash bonus.bos.sh on
Copied!
Manual installation on the RaspiBlitz:
1
# check and install NodeJS
2
/home/admin/config.scripts/bonus.nodejs.sh
3
4
# create bos user
5
sudo adduser --disabled-password --gecos "" bos
6
7
# set up npm-global
8
sudo -u bos mkdir /home/bos/.npm-global
9
sudo -u bos npm config set prefix '/home/bos/.npm-global'
10
sudo bash -c "echo 'PATH=$PATH:/home/bos/.npm-global/bin' >> /home/bos/.bashrc"
11
12
# download source code
13
sudo -u bos git clone https://github.com/alexbosworth/balanceofsatoshis.git /home/bos/balanceofsatoshis
14
cd /home/bos/balanceofsatoshis
15
16
# make sure symlink to central app-data directory exists ***"
17
# not a symlink.. delete it silently
18
sudo rm -rf /home/bos/.lnd
19
# create symlink
20
sudo ln -s "/mnt/hdd/app-data/lnd/" "/home/bos/.lnd"
21
22
# make sure rtl is member of lndadmin
23
sudo /usr/sbin/usermod --append --groups lndadmin bos
24
25
# install bos
26
sudo -u bos npm install -g balanceofsatoshis
Copied!
Run from the bos user: $ sudo su - bos
$ bos help

To set up a Telegram bot connected to your node

WARNING: the Telegram Bot will send encrypted messages about the events on your node over clearnet, which are decrypted by the central Telegram Bot API
To avoid leaking your public IP to Telegram use torify before the bos telegram command to route communication through Tor: torify bos telegram related issue: https://github.com/alexbosworth/balanceofsatoshis/issues/54
  • Got to t.me/BotFather /newbot
  • Copy the API key
  • in the terminal (in tmux if want to keep running): torify bos telegram
  • paste the API key to the terminal
  • In your new TG bot: /connect
  • paste the connection code to the terminal for bos.

gist with comments

https://gist.github.com/openoms/823f99d1ab6e1d53285e489f7ba38602#to-set-up-a-telegram-bot-connected-to-your-node

Adding BOS-Telegram Bot to your startup scripts

https://github.com/ziggie1984/miscellanous/blob/97c4905747fe23a824b6e53dc674c4a571ac0f5c/automation_telegram_bot.md
Last modified 25d ago