Skip to content
Ahmad Affan
Index01Work02Services03Process04About05FAQ06Blog
Open to new projects--:--Rahim Yar Khan · UTC+5Start a project

Have something worth building?

Start a project[email protected]
Ahmad Affan

Full-Stack Developer building web apps, bots and AI agents for founders and small teams worldwide.

Services

  • SaaS platforms
  • Telegram and WhatsApp bots
  • AI voice agents
  • Websites and WordPress
  • Automation and integrations
  • Trading automation

Case studies

  • Appex Market
  • TelegramCopy
  • Appointox
  • VoxPilot
  • All work

Get in touch

  • Email
  • Telegram
  • LinkedIn
  • GitHub
  • Fiverr
Ahmad Affan.
© 2026 Ahmad AffanBack to top ↑
← All work

SaaS · Telegram commerce

A shop that lives inside Telegram, for any vendor who wants one.

A multi-tenant SaaS that turns Telegram into a storefront, with crypto checkout.

My role
Full-stack: SaaS core, bot runtime, crypto checkout, dashboards, Mini App
Built with
Next.jsFastAPIMongoDBTelegram Mini AppBTC / LTC
Type
My own SaaS
Live site
appexmarket.online
appexmarket.online
Appex Market website, scrolling preview
Overview

Appex Market lets independent vendors open their own Telegram shop. A vendor registers on the website, picks a plan, pays in Bitcoin or Litecoin, connects their own bot and gets an isolated store with products, cart, checkout, order tracking, support tickets, reviews, promo codes and shipping methods.

Buyers never leave Telegram. They shop through the chat bot, a Mini App, or both. The platform owns billing, tenant isolation and the bot runtime; each vendor owns their catalogue, customers and payout wallets. It is a working shop, not a shared marketplace aisle, so customers stay private to each vendor's brand.

Plans
Starter ~5% commission · Lifetime 0%
Checkout
Bitcoin and Litecoin
Mini App
/m/{slug}
How it works
  1. Vendor signs up

    Registers on the Next.js site, chooses Starter (commission) or Lifetime (0% commission) and receives a BTC/LTC invoice.

  2. Payment is confirmed

    A confirmation watcher follows the chain, handles under-payments and top-ups, then marks the plan paid.

  3. A tenant is provisioned

    A dedicated tenant database is created and the vendor's own Telegram bot token is stored encrypted.

  4. The bot starts

    The process manager launches that vendor's bot. Buyers open the chat or the Mini App at /m/{slug}.

  5. Orders settle on-chain

    Each order gets its own deposit address. Once confirmed, funds are split between the vendor and platform wallets.

What it does

Strict tenant isolation

A platform database plus a separate tenant_<id> database per shop. Every query is scoped, so there is no cross-vendor leakage.

Multi-bot runtime

A manager starts and stops one bot per paid tenant, with an optional backup bot and role swap.

Telegram Mini App

A React storefront for catalogue, cart, checkout and orders. Buyers are authenticated with Telegram WebApp initData (HMAC), not passwords.

Per-order crypto addresses

HD wallet derivation (BIP84) with a public-explorer fallback, a payment watcher, and split payouts.

Vendor console

Catalogue, orders, shipping, promos, reviews, customers and bot settings. Vendors can also run the shop from /admin inside Telegram.

Platform admin

Tenants, plan state, audit logs and bot start/stop from one console.

Tech stack
FrontendNext.js 15 (App Router)React 19TypeScriptTailwind CSS
APIPythonFastAPIUvicornPydantic
AuthJWTbcryptTelegram WebApp initData HMAC
Telegrampython-telegram-botBot APIMini App / MenuButton
DataMongoDBPlatform DB + per-tenant DBs
CryptoBIP84 HD walletsmempool.space / litecoinspaceBlockCypher fallback
HostingWindows ServerIIS (URL Rewrite + ARR)Cloudflare
What I built
  • Multi-tenant data model and tenant lifecycle
  • Bot manager, encrypted token storage and webhooks
  • Crypto invoicing, address derivation and the confirmation watcher
  • Vendor and admin dashboards, Mini App buyer experience
  • Production deploy behind Cloudflare and IIS
More work
SaaS built for a client
telegramcopy.com
TelegramCopy website, scrolling preview

TelegramCopy

Telegram-to-MetaTrader copy trading with Stripe billing and queued execution.

NestJSNext.jsMQL4 / MQL5Stripe
SaaS built for a client
appointox.com
Appointox website, scrolling preview

Appointox

Multi-tenant booking SaaS with subdomain sites, chat bots and an AI phone agent.

ReactFastAPIMongoDBRetell AI

Want something like this for your business?

Start a project