- TypeScript as a main language
- Telegraf as a bot framework of choice, because it's the most popular TypeScript bot framework
- Supabase as SaaS backend, because it's fast and free, and it's Postgres underneath
- Quickchart as a SaaS Chart.js provider, because it renders to the picture and is free
$ yarn
$ yarn build
$ yarn start
The bot uses polling
when running locally and webhooks
in production
.
Webhooks
mode allows run on Heroku free tier, because a POST
request can wake up a free dyno
, and polling
allows to easily run on local.
/month
replies with a doughnut chart of current month expenses groupped by user/year
gives a table of expenses over the year by months/store_month
sends a list of expenses by stores in this month/abbr
replies with a list of available shortcuts