Simple Telegram bot for displaying cute cat images written in Haskell.
Find the channel here: https://t.me/suseng_channel
Use with private bot token in data/token.txt
.
Create a Database in data/
.
Insert the desired chat_id
in sendPhoto
.
susengbot uses SQLite3 for storing image id and url. The Database table is created via the following command:
CREATE TABLE cats (
id text primary key,
url text,
date_added DATETIME default current_timestamp);
compile using cabal build
, move the executable and add a cronjob for a daily picture:
16 11 * * * cd susengbot && ./susengbot