Get notice from telegram user's messages over telegram api.
run ./setup
press [Ctrl + C] after login
run telegram-cli
(only once on this device).
Finish the login action.
Then run npm install && npm run build
npm i -g tg-notice
Just get message from one friend:
tg-notice name=Gena
You can also specify the icon
for the friend:
tg-notice name=Gena icon=res/gena.png
Run with more settings:
tg-notice app="Gena Notice" name=Gena name="Beeno Tung"
Setting multiple name
will trigger notice when a message is sent from any of the users.
You can also specify the icon
of for each name
alternatively:
tg-notice app="Gena Notice" \
name=Gena icon=res/gena.png \
name="Beeno Tung" icon=res/beeno.png \
- put the scripts folder into
PATH
- make sure this repo is cloned on ~/local/opt. otherwise update the scripts/tg-notice line 17 (the cd command)
- run tg-notice from the shell
BSD-2-Clause (Free and Open Sourced Software)