A personal Telegram bot that acts as a "Digital Jar of Notes". It allows an Admin (you) to record voice notes or write texts tagged by specific moods. The user can then request a message based on how they are feeling, receiving a random, unplayed note from the collection.
- π Voice & Text Support: Upload voice notes or fallback to text poetry.
- π Mood Tagging: Categorize messages into
Romantic,Sad, orHope. - π Smart Rotation: Ensures she never gets the same message twice until she has heard them all.
- π Auto-Reset: Automatically reshuffles the "jar" when all messages in a mood have been played.
- βοΈ Cloud Database: Uses PostgreSQL to ensure data is never lost, even when the bot restarts.
- β¨οΈ Interactive Menu: Easy-to-use button interface for the user.
- Python 3.10+
- pyTelegramBotAPI (Telebot)
- PostgreSQL (Database)
- Railway (Hosting Platform)
- Clone the repository
git clone [https://github.com/yourusername/your-repo-name.git](https://github.com/yourusername/your-repo-name.git) cd your-repo-name
| Command | Usage | Description |
|---|---|---|
/upload <mood> |
/upload romantic |
Upload a voice note for a specific mood. |
/addtext <mood> <text> |
/addtext sad I miss you |
Save a text message/poem for a mood. |
| Command | Description |
|---|---|
/start or /menu |
Opens the interactive button menu. |
/romantic |
Fetches a random romantic voice note. |
/sad |
Fetches a comforting voice note. |
/hope |
Fetches a hopeful message. |
/shayari |
Fetches a random message from any category. |
βββ bot.py # Main bot logic
βββ requirements.txt # List of python libraries
βββ Procfile # Worker command for Railway
βββ .gitignore # Tells git to ignore .env
βββ README.md # Documentation