Skip to content

A scrap notifier bot for telegram, will send you a telegram message when a url is requested.

Notifications You must be signed in to change notification settings

Darfk/notifierbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

notifierbot

A scrap notifier bot for telegram, will send you a telegram message when a url is requested.

Install

go get github.com/darfk/notifierbot
go install github.com/darfk/notifierbot

Run

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

Usage

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

Tech Used

  • 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.

About

A scrap notifier bot for telegram, will send you a telegram message when a url is requested.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages