Coder Social home page Coder Social logo

telegram-shop-bot's Introduction

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.

telegram-shop-bot's People

Contributors

brondee avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.