A Telegram Bot which consumes/stores/gives the pages for you to read
Available commands:
- /start
- /help
- /rnd (pick a random link from the saved list)
Important: Picking up links is a one-time action! If you make the Bot to pick any link for you, this link will be removed from the storage immediately.
- Get (or retrieve created) the Telegram Bot token value.
- Set it as an env variable called
TG_TOKEN
. - There are 3 ways in order to run the Telegram Bot service:
make start-sqlite
command in terminal (uses sqlite as a storage source)make start-files
command in terminal (uses Gob encoded in files as a storage source)- just
make start
(uses sqlite by default)
Hint: the make
commands do build the binary and run the service whenever you invoke any of it, but you can also use a pre-built one here