DaniilDonskoy/Shop-bot
关于
🛒 Telegram 商店机器人模板
商业与金融可以做什么
- /start - needed to start the bot and choose the mode (user/admin).
- /menu - go to the menu.
- /sos - ask the administrator a question.
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文This is an example Telegram shop bot. It's a simple and, most importantly, efficient way to place an order without leaving your favorite messenger.
What can it do?
/start- needed to start the bot and choose the mode (user/admin)./menu- go to the menu./sos- ask the administrator a question.
Menu
The user menu looks like this:

Catalog
The catalog consists of products sorted by categories. Users can add items to their cart, and the admin has full control over catalog management (addition/removal).
Cart
The ordering process looks like this: the user goes to the 🛍️ Catalog, selects the desired category, chooses products, and clicks the 🛒 Cart button.
Then, after making sure everything is in place, proceed to checkout by clicking 📦 Place Order.
Add a Product
To add a product, select a category and click the ➕ Add Product button. Then, fill out the "name-description-image-price" form and confirm.
Contacting Administration
To ask the admin a question, simply select the /sos command. There is a limit on the number of questions.

Get started
Clone this repository.
Create and activate virtual enviroment:
Windows:
python -m venv venv
& venv/scripts/activate.ps1
UNIX:
python3 -m venv venv
source venv/scripts/activate
- Install the requirements:
pip install -r requirements.txt
- Create and populate
.envfile in the root directory. Here are the required keys (* - always required; ** - required only in production):
| Key | Value |
|---|---|
| BOTTOKEN (*_) | To get bot token, you need create a bot via BotFather. |
| PROJECTNAME (**_) | Name of your project on Heroku (required if you want to deploy bot on Heroku). |
| WEBHOOKHOST, WEBHOOK_PATH (**_) | Webhook host and path. |
| ADMINS (**) | A comma-separated string of admins IDs (e.g., 000000000,123456789). To get your Telegram ID, use Get My ID bot. |
Example:
BOT_TOKEN=YOUR_BOT_TOKEN
ADMINS=123456789,000000000
- Run
app.py:
python3 app.py
探索相关项目
加载中…
