Skip to content

alks801/telegram-seller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Basic realization of an online store with telegram bot as a seller and admin site for managing orders.

Let me introduce basic realization of telegram seller bot.

Potencialy it can be powerful instrument for selling your products without site/ calling. Just a bot for working with clients.

For start using it you should register your own bot via https://t.me/BotFather

  • Next step is getting YOUR_BOT_TOKEN (like a 123456789:ADHzXhCJVJMa4tXx8vrFHjqt_5wg4BXoB2U)

  • Paste your token into app.js

const bot_token = '3123456789:ADHzXhCJVJMa4tXx8vrFHjqt_5wg4BXoB2U';

After it install MySQL and add some data to your db.

Current neccessary tables:

  • product (idproduct, name, description)
  • basket (id, chatid, productid, productname, productcost)
  • order (id, irder, chatid, productid)
  • chat (id, username, f_name, l_name)

Screens with work:

Start:

Start

MainMenu:

MainMenu

Products:

Products

Adding to basket:

Ordering

Basket:

Basket

Simpliest orders manager

Basket

About

Telegram bot as a seller? Yes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published