Giter Site home page Giter Site logo

imakswell / telegram_ecommerce Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raulpy271/telegram_ecommerce

0.0 0.0 0.0 21.44 MB

๐Ÿค– A telegram bot that can sell products and the salespeople can add, delete, and manage them.

License: MIT License

Python 100.00%

telegram_ecommerce's Introduction

telegram ecommerce

This is a telegram bot made using the python language. To connect with the telegram API I use the python-telegram-bot wrapper and on the database side, I use MySQL.

what this bot can do?

A telegram bot that can sell products and the salespeople can add, delete, and manage them.

The fallowing are instructions of how use this bot:

  • type /show_categories to see products by category.

  • To search to something you can use the command /search.

  • To buy something you need to register a password. To do this type /register.

  • The admins can add products and categories with the commands /add_product and /add_category.

screenshot

Register Command

Using the register command

Seeing products

Seeing products

Making a payment

Making a payment

Searching for a product

Searching a product

Changing the language

Changing the language used

how to setup

First of all, see the dependencies in the requirements file or type pip install -r requirements.txt to install the dependencies automatically.

The second process is to create a bot with the Bot Father and get your bot token and to make test payments you should have a token from a payment provider, learn more about this in the telegram payment page.

Now, put your tokens in the file /telegram_ecommerce/utils/user_credentials.json, in this file you can put the admin's usernames and the credentials of your MySQL database. Moreover, you can change some settings in the consts.py file, like the default language.

After all, you can run the bot typing:

 $ python bot.py

Disclaimer

This project it's just a demo, it's only have learning propose. To be ready for production, many features are need to be added. So I don't have the proposal to make it production-ready.

TODO

  • Add feature to change password
  • Add salt when storing the password
  • Add full support to the Portuguese language
  • Add support to other language
  • Ask to the user the password when the user wants to make a purchase
  • The handler that add product in database dont check if the description of the products have more char than the description column have
  • When the user select the command \show_categories more than one time the bot only show products one time
  • Add an filter to block non admins commands like these: /add_product and /add_category

telegram_ecommerce's People

Contributors

raulpy271 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.