Completed product · Telegram bot

Accountant Helper

A group bot that records shared expenses, calculates who owes whom and exports the ledger to Excel.

Stack
Go, PostgreSQL, Telegram Bot API
Data
pgx, database migrations
Export
Excel
Delivery
Docker Compose
Source repository is private
Telegram expense split into balances and an Excel report

Problem

Shared spending is easy to record and hard to reconcile

In a group chat, payments appear as short messages, while the actual ledger must remember participants, shares, repayments and removed users. The bot turns chat input into consistent records and keeps the calculation available to every registered member.

Natural input

An expense can be written as a regular message with an amount, participants and a comment.

Exact money

Shares are calculated in integer minor units, avoiding floating-point rounding errors.

History remains

Removing a participant does not erase earlier expenses or change past balances.

Owner controls

The group owner manages members, corrections and full Excel export.

Implemented scope

The full first version is complete

The bot creates a group, records and lists expenses, calculates debts and repayments, manages aliases and members, works in group and private chats, and exports transactions. PostgreSQL migrations and containerized startup make the environment reproducible.

Next project

NLP Service

A separate service for extracting structured fields from Russian text.

Read project →