A scrap notifier bot for telegram, will send you a telegram message when a url is requested.
go get github.com/darfk/notifierbot
go install github.com/darfk/notifierbot
Provided your go executable path is in your PATH environment variable
$ API_KEY={your telegram bot key} \
BASEURL={base url for webserver} \
ADDR_FAM={web server bind address family, default=unix} \
ADDR={web server bind address, default=socket.sock} \
TRIES={number of times to try to connect to the Telegram API before giving up, default=5} \
notifierbot
This bot runs (intermittently) on darfk.net. No, it does not anymore.
To recieve a message simply make an HTTP POST request to the server, something like.
curl -X POST [BASEURL]/[your UUID]?message=your+message+here
- github.com/go-xorm/xorm
- github.com/mattn/go-sqlite3
- gopkg.in/telegram-bot-api.v4
- github.com/nu7hatch/gouuid
Originally I was using boltdb but I switched to xorm because I believe there was too much boilerplate.