A medication reminder bot that sends notifications via Telegram.
-
Install dependencies:
pip install -r requirements.txt
-
Set up your Telegram bot token:
- Get a bot token from @BotFather on Telegram
- Create a file named
.env
in the project directory with the following content:TELEGRAM_TOKEN=your_bot_token_here
- Replace
your_bot_token_here
with the token you received from BotFather
-
Run the bot:
python main.py
-
Start a chat with your bot on Telegram and send
/start
If you're not receiving notifications:
- Use the
/health
command in your chat with the bot to run a diagnostic test - Check your bot logs for any error messages
- Make sure you've added medications with upcoming reminder times
- Verify that your user ID is correctly registered in the database
The bot uses SQLite locally to store:
- User information (Telegram user ID)
- Medications and dosage schedules
- Reminder logs and statuses
/start
- Initialize the bot and display the main menu/addmed
- Add a new medication/mylist
- View your active medications/setphone
- Set a phone number for call escalations/health
- Check if the bot is functioning correctly/scanrx
- (Demo) Scan a prescription image
- ModuleNotFoundError: Make sure you've installed all requirements
- No notifications: Check whether the bot is running and has the correct permissions
- Bot not responding: Ensure the TELEGRAM_TOKEN is set correctly