A Java-based Telegram bot that provides structured first-aid and emergency guidance through an interactive chat interface.
Medical Tips Bot is a rule-based Telegram bot that helps users quickly access clear, step-by-step instructions for emergency situations such as:
- Radiation exposure
- Hypothermia
The bot focuses on educational guidance, not medical diagnosis.
This bot does NOT replace professional medical advice.
Always consult a healthcare professional in real emergencies.
- Telegram bot (no installation required)
- Menu-driven navigation with buttons
- Structured emergency instructions
- Support for images and media
- Simple and predictable rule-based logic
- Basic unit tests for command handling
flowchart TD
User --> Telegram
Telegram --> Bot
Bot --> Main
Main --> Commands
Main --> Callbacks
Commands --> Start
Commands --> Help
Commands --> Unknown
Callbacks --> Scenarios
Scenarios --> Radiation
Scenarios --> Hypothermia
src/
├── main/java/com/mtb
│ ├── Main.java
│ ├── command/
│ ├── service/
│ ├── repository/
│ ├── dto/
│ └── impl/
│
└── test/java
- Java
- Gradle
- Telegram Bots API
- JUnit / Mockito
git clone https://github.com/zasadna/Medical_Tips_Bot.git
cd Medical_Tips_Bot
BOT_NAME=your_bot_name
BOT_API_TOKEN=your_token
./gradlew run
./gradlew test
- Move content to external files (JSON/YAML)
- Add more scenarios
- Improve architecture (split Main.java)
- Add user state handling
QA-focused pet project demonstrating:
- bot logic design
- structured flows
- testable architecture