/Telegram-shop-bot

Aiogram Python Telegram shop bot

Primary LanguagePythonMIT LicenseMIT

greeting_git

🔷 Telegram shop bot

This is an example of a boardgames rental shop with an admin panel, database and payment card in Telegram messenger, which is written using Aiogram Python.

What can it do?

/start for start. The bot will send a greeting message.
/home. The bot will display the Home menu markup.
/choose. The bot will show some of the products from database.

Home menu

home_menu_purple

⚙️ Functions

🎮 Choose game

After clicking on 🎮 Choose game button the bot will send limited amount of the products from the database. Limit 5. Each message with product contains the image of a product, the name, price per day, price per week and the price of the deposit. Also under the message there are two Inline buttons Rent 'Game name' per day and Rent 'Game name' per week. Both add the game to the cart.

product_bg_white

✉️ Suggest a game

Allows a user to suggest a game. The suggestion saves to the database.

🖌 Ask

Allows a user to ask a question. The question automatically sends to the Admin chat.

🗑 Cart

After clicking on 🗑 Cart button the bot will send a message with user's cart info and will display the Cart menu. In this menu user can
✂️ Delete from cart, which basically deletes a particular item from cart. Also user can 🟢 Checkout.
After that user will be able to choose between payment methods and delivery methods. cart_menu

📟 Admin panel

An admin should create a new chat where he should add the bot. The bot will check if the admin is actually the admin of the chat and if so he will send a message with admin panel menu. admin_panel_menu

📪 Set available

After clicking on 📪 Set available button admin will be asked to write tha name of a game, which will be set available. After sending a message with the name of the game, the bot will update the availability of the product in the database.

🎲 Add a game

After clicking on 🎲 Add a game button admin will be asked to write some info about a new game to add. After following the steps the bot will add game to the Database.

💥 Delete a game

After clicking on 💥 Delete a game button admin will be asked to write the name of the game which he wants to delete. After that game will be deleted from the Database.

💳 Payment card

User can pay with a payment card. I used the Qiwi p2p to make this work. It just creates the bill and sends the url to user. After that user should click on Check payment button. If he successfully payed the bill, order's will be saved to the Database and also will be send to the admin.