{"id":51100367,"url":"https://github.com/abbosaliboev/tilla-tandir-bot","last_synced_at":"2026-06-24T10:00:55.994Z","repository":{"id":267717216,"uuid":"902137776","full_name":"abbosaliboev/tilla-tandir-bot","owner":"abbosaliboev","description":"Automated telegram bot for kitchen reports.","archived":false,"fork":false,"pushed_at":"2025-07-04T08:18:10.000Z","size":355,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T09:25:37.200Z","etag":null,"topics":["bot-template","python","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Procfile","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/abbosaliboev.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":"2024-12-12T01:29:35.000Z","updated_at":"2025-07-04T08:18:13.000Z","dependencies_parsed_at":"2024-12-12T02:32:55.785Z","dependency_job_id":"c4e866bb-df35-40af-b4ee-f442a4c2cc08","html_url":"https://github.com/abbosaliboev/tilla-tandir-bot","commit_stats":null,"previous_names":["abbosaliboev/tilla-tandir-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abbosaliboev/tilla-tandir-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbosaliboev%2Ftilla-tandir-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbosaliboev%2Ftilla-tandir-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbosaliboev%2Ftilla-tandir-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbosaliboev%2Ftilla-tandir-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abbosaliboev","download_url":"https://codeload.github.com/abbosaliboev/tilla-tandir-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbosaliboev%2Ftilla-tandir-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34724756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bot-template","python","telegram","telegram-bot"],"created_at":"2026-06-24T10:00:54.422Z","updated_at":"2026-06-24T10:00:55.989Z","avatar_url":"https://github.com/abbosaliboev.png","language":"Procfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Telegram Inventory Management Bot 🤖\n\n**This bot simplifies inventory, sales, and expense management by integrating features like user authentication, PDF reporting, and real-time tracking.** \n\n---\n\n## ✨ Features\n- 🛒 **Inventory Management**:\n  - 📥 Add items to inventory.\n  - 📤 Remove items from inventory.\n  - 🗂 View inventory status.\n- 💸 **Sales Management**:\n  - Record and track sales.\n  - Generate daily and monthly reports.\n- 🛠️ **Expense Tracking**:\n  - Add expenses with user details.\n  - Monitor daily and monthly expenses.\n- 🗂️ **PDF Report Generation**:\n  - Automatically generate and share **monthly reports** in PDF format. 📝\n- 🔒 **Secure Access**:\n  - Only authorized users can access bot features through an **admin password**.\n- 🤝 **User Management**:\n  - View, add, or remove authorized users.\n  - Clear the entire user list in one command.\n\n---\n\n## 📚 Bot Commands\n\n### 👤 General Commands\n| Command                          | Description                          |\n|----------------------------------|--------------------------------------|\n| `/start`                         | Start the bot and view commands.     |\n| `/yakuniy_savdo [product] [quantity] [price]` | Record a sale.               |\n| `/ombor`                         | View all items in the inventory.     |\n| `/qabul [product] [quantity]`    | Add products to the inventory.       |\n| `/chiqarish [product] [quantity]`| Remove products from the inventory.  |\n| `/kunlik_hisobot`                | View daily sales and expense report. |\n| `/oylik_hisobot`                 | Generate and share monthly PDF report. |\n| `/xarajat [product] [price]`     | Record an expense.                   |\n\n### 🔧 Admin Commands\n| Command                          | Description                          |\n|----------------------------------|--------------------------------------|\n| `/foydalanuvchilar`              | View the list of authorized users.   |\n| `/foydalanuvchilarni_tozalash`   | Remove all authorized users.         |\n| `/foydalanuvchini_ochirish [user_id]` | Remove a user by ID.           |\n\n---\n\n## 🚀 Hosting Platform: Railway\n\nThis bot is hosted on **Railway**, a user-friendly platform offering free and flexible hosting for lightweight applications.\n\n### Why Railway?\n- **Free Plan**: Perfect for small projects and bots.\n- **GitHub Integration**: Automatically deploys from your repository.\n- **Simple Management**: Easy-to-use dashboard for logs and settings.\n\n### Deployment Steps\n1. Sign up on [Railway](https://railway.app/).\n2. Create a new project and connect your GitHub repository.\n3. Add environment variables (e.g., `YOUR_BOT_TOKEN`).\n4. Deploy your bot and monitor it via the Railway dashboard.\n\nFor more details, visit the [Railway Documentation](https://railway.app/docs).\n\n---\n\n## 🛠 Setup and Installation\n\n### 1️⃣ Prerequisites\n- **Python 3.x** installed.\n- Required libraries installed:\n  ```bash\n  pip install fpdf python-telegram-bot\n  ```\n\n### 2️⃣ Steps to Run the Bot\n1. Clone this repository:\n   ```bash\n   git clone \u003crepository_url\u003e\n   cd \u003crepository_folder\u003e\n   ```\n\n2. Create a `database.json` file to store sales, inventory, and expenses:\n   ```json\n   {\n       \"savdolar\": [],\n       \"ombor\": {},\n       \"xarajatlar\": []\n   }\n   ```\n\n3. Update the **bot token** in the code:\n   ```python\n   app = ApplicationBuilder().token(\"YOUR_BOT_TOKEN\").build()\n   ```\n\n4. Run the bot locally:\n   ```bash\n   python bot.py\n   ```\n\n5. Access the bot via Telegram and start using commands.\n\n---\n\n## 🖼 Visual Styling and Stickers\n\nTo make the bot interactive and fun:\n- **Emoji Integration**: Commands and responses include emojis to improve readability.\n- **Stickers**: Use Telegram stickers to acknowledge user actions or errors (e.g., 👍, ❌, 🎉). You can include stickers using Telegram’s `send_sticker` method in responses.\n\nExample:\n```python\nawait update.message.reply_sticker(sticker=\"CAACAgIAAxkBAAEB1Jlk9Xo7K0X5...\")\n```\n\n---\n\n## 🔒 Security\n\n- Admin password is required for system access.\n- Replace the default password (`ADMIN_PASSWORD`) in the code with a secure password:\n   ```python\n   ADMIN_PASSWORD = \"YourSecurePassword\"\n   ```\n\n---\n\n## 📁 File Structure\n\n| File/Directory       | Description                                      |\n|-----------------------|--------------------------------------------------|\n| `bot.py`             | Main script containing the bot's logic.          |\n| `database.json`      | Persistent storage for sales, inventory, expenses. |\n| `oylik_hisobot.pdf`  | Monthly sales and expense report in PDF format.  |\n\n---\n\n## 🌟 Future Improvements\n- Add **multi-language support** for commands and responses.\n- Integrate **AI-powered analytics** for sales trends.\n- Expand report generation with graphs and charts.\n\n---\n\n## 📄 License\nThis project is open-source and available under the **MIT License**.\n\n---\n## 📸 Screenshot\nBelow is a screenshot of the bot in action:\n\n\u003cimg src=\"./Screenshot.png\" alt=\"Bot Screenshot\" width=\"400\"\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabbosaliboev%2Ftilla-tandir-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabbosaliboev%2Ftilla-tandir-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabbosaliboev%2Ftilla-tandir-bot/lists"}