How onazart/budget_mono works
Project type and purpose
• This is a Python‐based Telegram bot (“budget_govern_bot”) for tracking and reporting daily spending via Monobank.
• Core use case: users send commands or receive scheduled messages; bot fetches transaction data from Monobank, stores it in MongoDB, computes statistics and generates plots, then sends updates back to users.
File structure
• Top‐level files:
• Procfile – indicates deployment (e.g., Heroku).
• setup.py, requirements.txt – packaging and dependencies.
• config.ini – tokens, database credentials, scheduling parameters.
• bot_evening_state.py, bot_stat_finance.py, steps_in_bot.py – Telegram handlers and state machine.
• mono.py – Monobank API client.
• data.py, data/…json – data models, categories lookup.
• plot/plots.py – plotting routines (charts for spendings).
• additional_tools.py – shared utilities.
README for additional insights
• Technologies: Python, pyTelegramBot, MongoDB.
• Only works with Monobank.
Detailed capture of essential architecture
• Related Python modules under a “Telegram Bot Application” boundary.
• Config.ini feeding credentials into both Monobank client and MongoDB connector.