← All work · ~/work/miniapp.tsx

ConceptConcept · the Extreme gym· 2026

Extreme in Telegram — book, pay, get a QR pass

A Telegram Mini App and a grammY bot: pick a class from the week’s schedule, pay for a single visit or a plan, and get a QR pass in the app and in the chat.

Schedule, checkout and the QR pass
problem
Booking by phone and DMs needs someone to answer, and paying at the desk adds a queue.
built
Schedule → session → checkout → pass, in English or Ukrainian by the Telegram language. Telegram theme colours, MainButton, BackButton, haptics and CloudStorage. The server validates initData with HMAC-SHA256 before creating an invoice, and the price always comes from the shared dataset; the bot approves the pre-checkout and sends the QR pass as a photo. Payments run in Telegram’s TEST mode only; in a plain browser a demo mode simulates the payment. New this time: Telegram Payments end to end, covered by unit tests and a loopback stub of the Bot API.
result
17unit tests incl. initData signaturesTESTpayments only — no real money path4steps from schedule to QR pass
Next.js 16Telegram Mini AppsgrammYTelegram PaymentsVitest

Self-initiated concept — not commissioned by the companies it is about.