A Telegram bot that helps users stay organized and efficient using the Pomodoro Technique.
This bot implements the Pomodoro Technique for time management:
- Work Session: 25 minutes of focused work
- Break Time: 7 minutes of rest after each work session
- Session Tracking: All sessions are logged to a CSV file with timestamps
-
Start a Pomodoro Session
- Command:
/pomodoro <topic> - Example:
/pomodoro Study Math - Starts a 25-minute focused work session on the specified topic
- Bot will notify you when the session is complete
- Automatically starts a 7-minute break after completion
- Command:
-
Check Session Status
- Command:
/pomodoro status - Shows current session information
- Displays remaining time for work or break period
- Command:
-
Clear/Stop Session
- Command:
/pomodoro clear - Stops the current session and clears all timers
- Logs the session as "stopped" in the CSV file
- Command:
-
Bot Initialization
- Command:
/start - Confirms the bot is running and ready to use
- Command:
- One Session Per User: Only one active session allowed at a time
- Session Logging: All sessions are logged to
output.csvwith:- Topic name
- Timestamp
- Status (started/completed/stopped)
- Pomodoro Complete: Bot sends "Pomodoro done! Take a break! ☕" after 25 minutes
- Break Complete: Bot sends "Break done! Back to work! 🎯" after 7 minutes
- Session automatically removes itself after break completion
- Built with Python using
python-telegram-botlibrary - Uses threading for timer management
- Environment variables for secure token storage (
.envfile) - CSV logging system for session tracking
- Asynchronous message handling for reliable notifications