Work / Collaborations
Habit Tracker Telegram Bot
Telegram habit tracker with per-user ownership checks, repository tests, CI on every push and Railway deploys.
- Python 3.12
- python-telegram-bot
- SQLAlchemy 2.0
- PostgreSQL
- pytest
- Docker
- GitHub Actions
- Railway
A collaboration with Fluxxion88.
What it does
A python-telegram-bot service with seven commands (/start, /add, /list, /done, /streak, /delete, /help) over a SQLAlchemy and PostgreSQL model of users, habits and completions.
The part that matters
Every read, delete and completion path filters by the caller’s Telegram ID, so one user can’t touch another’s habits. Seven repository tests on in-memory SQLite check it, including the case where one user tries to delete or look up someone else’s habit.
Shipping
It runs in a slim Python 3.12 container, GitHub Actions runs pytest on every push and pull request, and it went out to Railway in June 2026. It isn’t running now.
Verified numbers
| Metric | Value | Source |
|---|---|---|
| Bot commands | 7 | Fluxxion88/telegram-bot-dailyk/main.py:23-41 |
| Repository tests, incl. cross-user cases | 7 | Fluxxion88/telegram-bot-dailyk/test_repository.py |