Operations outgrew a simple bot
Administrators, couriers, shops, and restaurants needed easier control, better product presentation, order handling, vendor operations, courier flow, and delivery-price logic.
Case study
A logistics-commerce/backend case study: a vendor-based delivery marketplace with Telegram web app ordering, catalog, cart, online payment initiation, vendor cabinet, courier workflow, administrator panel, and background workers.
Case summary
The second version was built from scratch after a simpler prototype validated the strategy. The goal was to avoid a separate mobile application and give customers, vendors, couriers, and administrators a practical marketplace workflow through Telegram-connected interfaces.
Administrators, couriers, shops, and restaurants needed easier control, better product presentation, order handling, vendor operations, courier flow, and delivery-price logic.
The work covered every layer: backend, Telegram web app, bot integrations, catalog, cart, vendor cabinet, courier workflow, admin panel, payments, OpenAPI, workers, and deployment.
The platform connected customer ordering, vendor catalogs and order fulfillment, courier acceptance/completion, administrator rules, payment collection, and background tasks.
Vendors and couriers received separate operational flows, while administrators received one layer for orders, vendors, couriers, delivery rules, tasks, and commercial settlement logic.
Bike-courier delivery needed pricing based on real riding dynamics, route behavior, fixed-gear movement patterns, average speed, vendor commissions, order count, order value, and courier labor cost.
Workflow
The project began as a Telegram-centered ordering flow: users interact with a bot, open a catalog through a web app, add products to a cart, calculate delivery, create an order, and initiate payment.
As the system developed, it became a multi-context delivery marketplace: vendors manage catalogs and order statuses, couriers accept and complete deliveries through Telegram, and administrators supervise vendors, couriers, delivery rules, global add-ons, background tasks, and platform settings.
Platform scope
Telegram web app catalog opening, vendor and product retrieval, cart creation, quantity management, delivery calculation, order creation, and order status tracking.
Order lists, order detail views, product management, add-ons, product images, bulk import, vendor users, locations, and manual/internal delivery creation.
Courier authorization, views for new and active deliveries, order acceptance, delivery completion, and status updates through a Telegram-based workflow.
Management of vendors, couriers, orders, delivery rules, global add-ons, partner/payment settings, tasks, users, roles, settings, and background processes.
Documented API endpoints for authentication, vendors, products, cart operations, delivery calculation, order lists and statuses, and payment initialization.
RabbitMQ and Supervisord-backed workers, cron scheduling, product imports, operational tasks, logs, and deployment separation across application contexts.
Commerce and delivery
The platform centralizes product catalog publishing, product and add-on management, user cart creation, address validation, delivery-price calculation, order creation, online payment initiation, vendor order processing, courier dispatch, and delivery completion.
The payment integration boundary supports payment initialization, QR retrieval, confirmation, cancellation, token generation, notification, success, and failure handling at a high level without exposing payment-provider details.
Data and access
The platform handles user contact and authentication records, Telegram identifiers, visible vendor and restaurant records, vendor users, courier records, delivery addresses, order contents, comments, payment statuses, file uploads, logs, and operational task data at a high level.
Vendor identity is part of the marketplace workflow: customers can see which shop or restaurant they order from, and vendors manage their own catalog and orders.
Operational impact
The platform gave a delivery marketplace a single operational layer for user ordering, vendor fulfillment, courier dispatch, payment initiation, and administrator supervision.
The implementation also supported a commercial model where vendors pay for platform usage based on received orders, order value, and courier labor cost.
Engineering
The implementation emphasizes a multi-role delivery workflow, Telegram web app and bot-based commerce, documented API integrations, cart/order/payment lifecycle management, vendor catalog operations, courier delivery status workflow, address validation, delivery-price calculation, MongoDB-backed storage, RabbitMQ workers, and maintainable separation across application contexts.