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

π 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
Area | Technologies |
---|---|
Language | Python 3.11 |
Framework | Aiogram 3 |
APIs | Telegram Bot API, Airtable REST |
Hosting | Railway |
Storage | SQLite + Airtable |
CI/CD | GitHub + 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 π