Skip to content

zasadna/Medical_Tips_Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🩺 Medical Tips Bot

A Java-based Telegram bot that provides structured first-aid and emergency guidance through an interactive chat interface.

Overview

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.


Disclaimer

This bot does NOT replace professional medical advice.
Always consult a healthcare professional in real emergencies.


Key Features

  • 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

Architecture

flowchart TD
    User --> Telegram
    Telegram --> Bot
    Bot --> Main

    Main --> Commands
    Main --> Callbacks

    Commands --> Start
    Commands --> Help
    Commands --> Unknown

    Callbacks --> Scenarios

    Scenarios --> Radiation
    Scenarios --> Hypothermia
Loading

Project Structure

src/
 ├── main/java/com/mtb
 │   ├── Main.java
 │   ├── command/
 │   ├── service/
 │   ├── repository/
 │   ├── dto/
 │   └── impl/
 │
 └── test/java

Tech Stack

  • Java
  • Gradle
  • Telegram Bots API
  • JUnit / Mockito

Setup

1. Clone repository

git clone https://github.com/zasadna/Medical_Tips_Bot.git
cd Medical_Tips_Bot

2. Configure environment variables

BOT_NAME=your_bot_name
BOT_API_TOKEN=your_token

3. Run

./gradlew run

Testing

./gradlew test

Future Improvements

  • Move content to external files (JSON/YAML)
  • Add more scenarios
  • Improve architecture (split Main.java)
  • Add user state handling

Author

QA-focused pet project demonstrating:

  • bot logic design
  • structured flows
  • testable architecture

About

2023 - Telegram bot in Java that provides structured emergency and first-aid guidance in Ukrainian for scenarios such as radiation accidents and hypothermia.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors