ZarplataBot β€” Telegram Bot for Shift, Bar, and Report Management

Jun 9, 2025 Β· 2 min read
Image credit: Unsplash

πŸ” About the Project

ZarplataBot is a Telegram bot designed to automate financial tracking in small teams such as baristas, shift workers, support staff, and administrators. It replaces manual spreadsheet entries and helps track:

  • πŸ’Ό Work shifts (day and night)
  • 🍷 Bar income with dynamic percentages
  • πŸ’Έ Expenses with comments
  • 🚫 Fines and deductions
  • πŸ“Š Monthly reports with filtering

The project was developed as a personal internal automation solution but can scale to any team.


πŸ’‘ Why I created this?

Working in a team where tracking was often done manually, I noticed:

  • Shift records were forgotten
  • Expenses got lost
  • Income was estimated roughly
  • Reports had to be collected piecemeal

To remove routine and errors, I decided to automate the process via Telegram, which everyone uses daily.


πŸ”§ Features

  • πŸ•‘ Adding shifts: day or night (with fixed rates)
  • 🍷 Bar accounting: income percentage depends on the amount (dynamic)
    • up to 3500 β€” 5%
    • 3500 to 4000 β€” 6%
    • 4000 to 4500 β€” 7%
    • …
    • from 10,000 β€” 15%
  • πŸ’Έ Entering expenses with comments (e.g., “300 food”)
  • 🚫 Fines with explanations (“500 late”)
  • πŸ“Š Monthly reports β€” current, previous, and manually selected
  • πŸ—ƒ All data stored in Airtable β€” easy manual editing
  • ⏱ Instant response β€” via Telegram bot, no need to open spreadsheets

πŸ”Œ Integrations

  • Telegram Bot API β€” user communication
  • Airtable API β€” database editable manually if needed
  • SQLite β€” local storage fallback
  • Railway β€” deployment and 24/7 uptime
  • GitHub β€” project storage and updates

πŸš€ Deployment

The bot is deployed on Railway, allowing 24/7 operation without relying on local machines. Code updates are done by git push to GitHub, and Railway automatically rebuilds and restarts the bot.


πŸ–Ό Interface

Users interact with the bot via buttons:

  • ▢️ Start
  • πŸ•‘ Day / πŸŒ™ Night shift
  • 🍷 Bar
  • πŸ’Έ Expense
  • 🚫 Fine
  • πŸ“Š Report

Each action is accompanied by confirmations and interactive messages. The interface is adapted to Telegram UX.


πŸ›  Technologies Used

AreaTechnologies
LanguagePython 3.11
FrameworkAiogram 3
APIsTelegram Bot API, Airtable REST
HostingRailway
StorageSQLite + Airtable
CI/CDGitHub + Railway Integration

πŸ“¦ Project Repository

Code available on GitHub:

πŸ‘‰ github.com/adjabkhanian/zarplata-bot


πŸ“ˆ Future Plans

  • User authorization
  • Google Sheets integration
  • PDF reports
  • Analytics with charts
  • Admin panel via web interface

πŸ’¬ Conclusion

ZarplataBot is not just a bot but a working tool for accounting and transparency. It removes chaos and makes routine pleasant.

If you want to adapt this bot for your team β€” contact me πŸ˜‰