Telegram bot for the Headache Log project.
Provides a simple and private interface for logging headache and migraine episodes.
The bot allows users to:
- create headache entries with a single action;
- view recent history;
- export their data as CSV;
- edit or delete existing entries.
Each user is identified by their Telegram user_id.
No registration, passwords, or personal profiles are used.
- π Privacy-first (no tracking, no third-party analytics)
- π§ Simple journaling, no medical advice
- π€ One Telegram user β one private log
- π Multilingual (based on Telegram language settings)
- Create a new entry (timestamp is set automatically)
- View last 10 entries
- Export full history as CSV (date + comment)
- Edit comment
- Soft delete entries
- Inline keyboard-based UX
- Python
- python-telegram-bot
- Async I/O
- REST API integration (headache-log-api)
The bot is a thin client:
-
contains no business logic;
-
stores no persistent data;
-
communicates with the backend API over HTTP.
Telegram User β Telegram Bot β Headache Log API β PostgreSQL
The bot is configured via environment variables:
BOT_TOKENβ Telegram bot tokenAPI_BASE_URLβ Headache Log API endpointBOT_DEFAULT_LANGUAGE(optional)
Secrets must not be committed to the repository.
The bot is designed to run:
- in Docker
- inside Kubernetes
- on ARM64 (Raspberry Pi)
Production deployment is handled in the headache-log-k8s repository.
π§ Early development (HomeLab project)
This project is not a medical application and does not provide medical advice.