A Telegram bot that allows you to buy and sell items in a marketplace.
View Demo
·
Report Bug
·
Request Feature
Table of Contents
This Bot is a telegram marketplace bot, It supports 3 kind of users,
- Regular user privileges
- Can view products and categories
- Can Buy products using BTC or LTC
- Can Credit wallet using BTC or LTC
- Can Buy products from wallet balance
- Can view purchase history
- Can message Group Admin
-
Vendor user privileges
- Can Create new products
- Can Create new category
- Can receive credit from product sales
- Can request Funds withdrawal
- Can view products and categories
- Can Buy products using BTC or LTC
- Can Credit wallet using BTC or LTC
- Can Buy products from wallet balance
- Can view purchase history
- Can message Group Admin
-
Admin user privilege
- All of the above
- Can access dashboard to view all users, vendors, purchases, deposits, withdrawals
- Can promote a user from regular user to vendor
- Can demote a vendor to regular user
- Can delete a product
- Can delete a category
- Can view all users, vendors, purchases, deposits, withdrawals
- Can message all users
To get this project copy up and running follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
- Python
pip install -r requirements.txt
Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.
- Get a telegram bot API Key at telegram bot tutorial
- Clone the repo
git clone https://github.com/richardokonicha/tg-marketplace.git
- Install NPM packages
pip install -r requirements.txt
- Enter your environment in
.env
TOKEN=********:***********-Avkvvk7wA***** ADMIN=577180091 CURRENCY=BTC FIAT_CURRENCY=USD DATABASE_URL=mongodb+srv://user:pass@cluster.mongodb.net/ WEBHOOK_URL = https://your_server_url.app WEBHOOKMODE = True BTCPAY_STORE_ID=B5HeoVS**************************** BTCPAY_TOKEN=2218e3892f*************************** BTCPAY_SERVER=https://btcpay.your_btcpay_server.com
- Run the bot
python main.py
- Clone the repo
git clone https://github.com/richardokonicha/tg-marketplace.git
- Install docker
sudo apt-get install docker.io
- Install docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local compose sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
- Enter your Environment variables in
.env
TOKEN=********:***********-Avkvvk7wA***** ADMIN=577 CURRENCY=BTC FIAT_CURRENCY=USD DATABASE_URL=mongodb+srv://user:pass@cluster.mongodb.net/ WEBHOOK_URL = https://your_server_url.app WEBHOOKMODE = True BTCPAY_STORE_ID=B5HeoVS**************************** BTCPAY_TOKEN=2218e3892f*************************** BTCPAY_SERVER=https://btcpay.your_btcpay_server.com
- Run the bot
docker-compose up -d
For addition configuration options, check config.js
file
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request