A production-ready Telegram bot for educational explanations of lab reports using AI, with strict medical safety constraints.
- Accepts PDF lab reports
- Extracts lab data and returns as JSON
- Educational explanations (AI integration coming)
- Strict safety guardrails (no medical advice)
- Admin configuration panel (coming)
-
Get API Keys:
- Create a Telegram bot and get token from BotFather
- Get Google Gemini API key from Google AI Studio
-
Environment Variables:
- Add to
credential.env:TELEGRAM_BOT_TOKEN=your_telegram_token_here GEMINI_API_KEY=your_gemini_api_key_here
- Add to
-
Install Dependencies:
pip install -r requirements.txt -
Run the Bot:
python app/main.py
- ✅ Telegram bot skeleton with polling
- ✅ PDF text extraction (returns JSON)
- ✅ Basic message handling
- 🔄 AI integration (in progress)
- 🔄 Admin panel (planned)
- No Diagnosis: Never provides medical diagnoses
- No Treatments: Never suggests treatments or medications
- Educational Only: Explains lab values in neutral terms
- Mandatory Disclaimer: Every response includes safety disclaimer
- Input Validation: Rejects non-PDF files and invalid reports
- Start the bot with
/start - Send a PDF lab report
- Receive extracted data as JSON
- (Future) Get educational explanations