This Telegram bot helps manage categorized lists of items and associates them with specific suppliers. Users can input item lists by category, view the data, and clear it when needed.
- Add Items by Category: Input items under specific categories.
- View Data: Display all stored categories, items, and their associated suppliers.
- Clear Data: Reset all stored data.
The bot supports the following categories and their corresponding suppliers:
Category | Supplier |
---|---|
базар | Жолдощ базар |
алкоголь | Парадайс |
вода | Шоро |
сендвичи | Венера эже |
пепси | Пепси |
пиво | Тенгри |
-
Clone the repository:
git clone <repository_url> cd <repository_name>
-
Install dependencies:
pip install python-telegram-bot
-
Set up the bot token: Replace the placeholder token in
bot.py
with your Telegram bot token:app = ApplicationBuilder().token("YOUR_BOT_TOKEN").build()
-
Start the bot:
python bot.py
-
Interact with the bot:
- Send
/start
to see the welcome message and usage instructions. - Send item lists in the following format:
пиво: mango-1 stout-1 lager-1
- Use
/show
to display all stored data. - Use
/clear
to remove all stored data.
- Send
- Send the following message to the bot:
пиво: lager-1 stout-2
- Use
/show
to display the data:Категория: пиво (Поставщик: Тенгри): - lager-1 - stout-2
- Use
/clear
to reset the data.
- The bot provides user-friendly error messages if the input format is incorrect.
This project is licensed under the MIT License.
This bot uses the python-telegram-bot
library for Telegram API integration.
For any issues or feature requests, feel free to open an issue on the repository or contact the developer.