Skip to content

πŸ›’ Telegram bot for university dorm shops. Supports student orders, room delivery, admin inventory control, payment confirmation, and real-time tracking.

Notifications You must be signed in to change notification settings

Zebaro24/Check-Point-SHOP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CheckPoint Shop Bot πŸ›’

Project Status License Python Telegram

Telegram bot for university shop operations, enabling students to order products with dormitory delivery. Features role-based access, payment processing, and real-time order tracking.


✨ Core Features

  • Role System:
    • πŸ‘€ Student registration with room details
    • πŸ‘¨β€πŸ’Ό Admin panel for inventory/order management
  • Shopping Experience:
    • πŸ›οΈ Product catalog browsing with intuitive navigation
    • πŸ“¦ Order creation with quantity selection
    • 🏠 Dormitory room delivery
  • Payment & Tracking:
    • πŸ’³ Screenshot-based payment confirmation
    • πŸ“Š Real-time order status updates
    • πŸ”„ Admin order processing workflow

🧰 Tech Stack

  • Backend: Python SQLAlchemy
  • Database: PostgreSQL psycopg2
  • Telegram Integration: pyTelegramBotAPI

βš™οΈ Installation & Setup

  1. Clone repository

    git clone https://github.com/Zebaro24/Check-Point-SHOP.git
    cd checkpoint-shop-bot
  2. Configure environment
    Create .env file:

    DATABASE_URL=postgres://user:password@localhost:5432/shop_db
    TELEGRAM_TOKEN=your_bot_token_here
  3. Install dependencies

    python -m venv .venv
    source .venv/bin/activate  # Linux/Mac
    .venv\Scripts\activate    # Windows
    pip install -r requirements.txt
  4. Initialize database

    python database.py

πŸš€ Launching the Bot

python runner.py

Client Flow

  1. Start bot with /start command
  2. Register with room number
  3. Browse products β†’ Select items β†’ Confirm payment
  4. Track order status in real-time

Admin Flow

  1. Access admin panel (pre-configured accounts)
  2. Manage product inventory
  3. Process orders: Confirm payments β†’ Update statuses β†’ Track deliveries

πŸ—‚οΈ Project Structure

handlers/
β”œβ”€β”€ admin_handler.py    # Admin commands processing
β”œβ”€β”€ client_handler.py   # Student interactions
└── base_handler.py     # Core handler logic
db_orm/
β”œβ”€β”€ product.py          # Product data model
β”œβ”€β”€ order.py            # Order management
└── roles.py            # User role definitions
config.py               # Environment configuration
database.py             # DB connection manager
telegram_bot.py         # Bot entry point

πŸ“Έ Interface Preview

Student View Admin Panel
Student UI Admin UI
Progress Manage

πŸ“¬ Contact

About

πŸ›’ Telegram bot for university dorm shops. Supports student orders, room delivery, admin inventory control, payment confirmation, and real-time tracking.

Topics

Resources

Stars

Watchers

Forks

Languages