How zhaketabin/dataanalizbotuz works
DataAnalizBotUz is a Telegram bot for company data analysis. Its main workflow is client registration and activation, question selection, Excel/CSV submission, analysis, and delivery of results with a PDF report. The single source file also contains multilingual prompts, client and access management, and administrator commands and reporting. The excerpts show SQLite-backed client data and report generation; the analysis implementation and several database operations fall in omitted sections, so those connections are documented but marked unverified where appropriate.
Main entry points: bot.py File submission
Components 15
Client onboarding
- Language selection
bot.py - Client registration
bot.py - Phone and service checks
bot.py
Access and administration
- Client database
bot.py - Activation controls
bot.py - Admin reporting
bot.py
Analysis and reporting
- Analysis questions
bot.py - File submission
bot.py - Data analysis
bot.py - PDF report
bot.py
Bot runtime
- Bot application
bot.py
Other components
- Telegram client
- Telegram platform
- Administrator
- Groq API
Connections 18
- Telegram client → Telegram platform: sends requests
README.md - Telegram platform → Bot application: routes updates
bot.py - Bot application → Language selection: starts registration
bot.py - Language selection → Client registration: selects language
README.md - Client registration → Phone and service checks: collects details
bot.py - Phone and service checks → Client database: checks blocked phone
bot.py - Telegram client → Analysis questions: chooses question
README.md - Analysis questions → File submission: prompts for file
bot.py - Telegram client → File submission: submits Excel or CSV
README.md - File submission → Client database: checks activation
bot.py - File submission → Data analysis: analyzes file
bot.py - Data analysis → Groq API: requests analysis
- File submission → PDF report: generates report
bot.py - PDF report → Telegram client: sends PDF
bot.py - Administrator → Activation controls: activates clients
README.md - Activation controls → Client database: updates access
bot.py - Administrator → Admin reporting: requests client stats
README.md - Admin reporting → Client database: reads client data
bot.py