create-tg-shop
Turn any online shop into a Telegram storefront bot — scrape products, let users browse, add to cart, and checkout, all inside Telegram.
Quickstart
Python (pip):
pip install create-tg-shop
create-tg-shop
Node (npx) — no install needed:
npx create-tg-shop
The wizard scaffolds a project, asks for your Telegram bot token and shop URL, installs dependencies, and gets you running in under a minute.
What it sets up
bot.py— ShopEngine + CartManager + Telegram message formattingscraper.py— base scraper class (plug in Playwright or BeautifulSoup)products.json— product catalog (edit directly or regenerate via scraper).env— your bot token and shop config
Customizing
- Implement
ShopScraper.scrape()to pull real products from your shop - Wire the checkout callback to Stripe, Shopify, or your payment provider
- Swap CartManager for Redis/database for persistent carts
License
MIT
Release files for create-tg-shop 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| create_tg_shop-0.1.0.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| create_tg_shop-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.9 kB
Release files / create_tg_shop-0.1.0.tar.gz
| Download URL | create_tg_shop-0.1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c6b1a3b41d72f2b0d4aabfa0defc6e566ce60227531f84b00b90159d9b1cda6
|
|
BLAKE2b-256 checksum How to use checksums |
c7aa4fa2d160dbfd33f2051bbcd7b5634ff5822901e4b6a00c6c6856e397e652
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / create_tg_shop-0.1.0-py3-none-any.whl
| Download URL | create_tg_shop-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff3178a2d75e38b6f533bc56054972eafc84d74805c60d37d66fcdaa04a80d60
|
|
BLAKE2b-256 checksum How to use checksums |
c457794f1a07e9dc9364980b4e0931400e2459ea43c06c09db79489cca1b36c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|