How vcusnaya-gusyatina/financeapp works
FinanceApp is a Telegram bot that polls for updates, records each message update to avoid duplicate processing, and replies through Telegram. The documented product surface is minimal; the sampled code shows polling, update processing, persistence, message handling, and a bot-info endpoint. Finance-specific workflows are not present in the README or sampled implementation. Relationships are based on the excerpts; the polling service invokes the processor, which owns persistence and message-handler calls.
Main entry points: TelegramUpdateProcessor.cs Update processor · FinanceDbContext.cs Finance database context · BotUpdateService.cs Update polling · MessageHandler.cs Message handler
Components 9
Bot runtime
- Update polling
BotUpdateService.cs
Update processing
- Update processor
Application/TelegramUpdateProcessor.cs - Message handler
MessageHandler.cs
Persistence
- Finance database context
Infrastructure/FinanceDbContext.cs - Processed updates
Infrastructure/ProcessedUpdate.cs - PostgreSQL database
Bot operations
- Bot info endpoint
Program.cs
Other components
- Telegram user
- Telegram API
Connections 10
- Telegram API → Update polling: provides updates
BotUpdateService.cs - Update polling → Update processor: dispatches updates
BotUpdateService.cs - Update processor → Finance database context: records update
Application/TelegramUpdateProcessor.cs - Update processor → Message handler: handles message
Application/TelegramUpdateProcessor.cs - Finance database context → Processed updates: maps records
Infrastructure/FinanceDbContext.cs - Finance database context → PostgreSQL database: persists records
- Message handler → Telegram API: sends reply
MessageHandler.cs - Telegram user → Telegram API: sends message
- Telegram API → Telegram user: delivers reply
- Bot info endpoint → Telegram API: requests bot info
Program.cs