{"id":28066727,"url":"https://github.com/evgeniqwerty/cook-book-bot","last_synced_at":"2025-05-12T15:52:19.765Z","repository":{"id":292803608,"uuid":"981981067","full_name":"EvgeniQwerty/cook-book-bot","owner":"EvgeniQwerty","description":"Telegram Recipe Management Bot","archived":false,"fork":false,"pushed_at":"2025-05-12T07:44:48.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-12T08:55:54.585Z","etag":null,"topics":["cook-book","python","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EvgeniQwerty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-12T07:42:28.000Z","updated_at":"2025-05-12T08:02:14.000Z","dependencies_parsed_at":"2025-05-12T09:07:27.488Z","dependency_job_id":null,"html_url":"https://github.com/EvgeniQwerty/cook-book-bot","commit_stats":null,"previous_names":["evgeniqwerty/cook-book-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvgeniQwerty%2Fcook-book-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvgeniQwerty%2Fcook-book-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvgeniQwerty%2Fcook-book-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvgeniQwerty%2Fcook-book-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvgeniQwerty","download_url":"https://codeload.github.com/EvgeniQwerty/cook-book-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253769005,"owners_count":21961461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cook-book","python","telegram","telegram-bot"],"created_at":"2025-05-12T15:52:18.846Z","updated_at":"2025-05-12T15:52:19.756Z","avatar_url":"https://github.com/EvgeniQwerty.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cook-book-bot: Telegram Recipe Management Bot\n\n## Overview\nCook-book-bot is a Telegram bot designed to help users manage cooking recipes and get AI-powered cooking assistance. The bot allows users to browse, add, edit, and delete recipes organized by categories, as well as ask cooking-related questions to an AI assistant.\n\n## Features\n\n### Recipe Management\n- **Browse Recipes**: View recipes organized by categories (Breakfast, Lunch, Dinner, Desserts, Snacks, Drinks)\n- **Add Recipes**: Add new recipes with title, ingredients, instructions, and optional video links\n- **Edit Recipes**: Modify existing recipes\n- **Delete Recipes**: Remove unwanted recipes\n\n### AI Cooking Assistant\n- Ask cooking-related questions\n- Get recipe suggestions based on available ingredients\n- Receive step-by-step cooking instructions\n\n### Multilingual Support\n- English and Russian language interfaces\n- Easily extendable to other languages\n\n## Installation\n\n### Prerequisites\n- Python 3.7 or higher\n- Telegram account and bot token (from BotFather)\n- OpenRouter API key (for AI assistant functionality)\n\n### Setup\n\n1. Clone the repository:\n   ```\n   git clone https://github.com/evgeniqwerty/cook-book-bot.git\n   cd cook-book-bot\n   ```\n\n2. Create a virtual environment and activate it:\n   ```\n   python -m venv venv\n   # On Windows\n   venv\\Scripts\\activate\n   # On macOS/Linux\n   source venv/bin/activate\n   ```\n\n3. Install dependencies:\n   ```\n   pip install aiogram aiosqlite python-dotenv aiohttp\n   ```\n\n4. Create a `.env` file in the project root with the following content:\n   ```\n   TOKEN=your_telegram_bot_token\n   OPENROUTER_API_KEY=your_openrouter_api_key\n   LANGUAGE=en  # or 'ru' for Russian\n   ```\n\n## Configuration\n\nThe bot's configuration is managed through the `config.py` file:\n\n- **TOKEN**: Your Telegram bot token (loaded from .env)\n- **OPENROUTER_API_KEY**: API key for OpenRouter (loaded from .env)\n- **OPENROUTER_MODEL**: AI model used for cooking assistance\n- **DATABASE_NAME**: SQLite database file name\n- **LANGUAGE**: Interface language ('en' or 'ru')\n- **CATEGORIES**: Recipe categories (automatically adjusted based on language)\n\n## Usage\n\n1. Start the bot:\n   ```\n   python main.py\n   ```\n\n2. Open Telegram and search for your bot by username\n\n3. Start a conversation with the bot by sending the `/start` command\n\n4. Use the main menu to:\n   - Browse recipes by category\n   - Add new recipes\n   - Ask the AI assistant for cooking advice\n\n## Project Structure\n\n```\n├── main.py                # Bot entry point\n├── config.py              # Configuration settings\n├── translations.py        # Multilingual text support\n├── database/              # Database operations\n│   ├── __init__.py\n│   └── db.py              # Database functions\n├── handlers/              # Message handlers\n│   ├── __init__.py\n│   └── user_handlers.py   # User interaction handlers\n└── keyboards/             # Telegram keyboard layouts\n    ├── __init__.py\n    └── keyboards.py       # Keyboard generation functions\n```\n\n## Database Schema\n\nThe bot uses SQLite to store recipe data with the following schema:\n\n```sql\nCREATE TABLE recipes (\n    id INTEGER PRIMARY KEY AUTOINCREMENT,\n    category TEXT NOT NULL,\n    title TEXT NOT NULL,\n    ingredients TEXT NOT NULL,\n    instructions TEXT NOT NULL,\n    video_link TEXT\n)\n```\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Acknowledgements\n\n- [aiogram](https://github.com/aiogram/aiogram) - Telegram Bot API framework\n- [OpenRouter](https://openrouter.ai/) - AI model provider","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevgeniqwerty%2Fcook-book-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevgeniqwerty%2Fcook-book-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevgeniqwerty%2Fcook-book-bot/lists"}