Skip to content

khokhlachev/shared-exprenses-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shared Expenses Telegram Bot

What's inside

  • 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

Usage

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

Available commands

  1. /month replies with a doughnut chart of current month expenses groupped by user
  2. /year gives a table of expenses over the year by months
  3. /store_month sends a list of expenses by stores in this month
  4. /abbr replies with a list of available shortcuts

License MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published