bober-bbq-bot/bober_bbq/api
byrsapty 7fe8ce9030 Add guest ordering for customers without Telegram
The Mini App required a valid Telegram WebApp signature for every
cart/checkout/order call, so anyone without Telegram couldn't order at all.
require_customer_auth now falls back to a cookie-bound guest identity
(a fresh negative telegram_id per guest, see allocate_guest_telegram_id)
instead of rejecting the request, reusing the existing webapp bundle with
no new frontend needed. Orders also get a random tracking_token so a guest
who loses their session cookie can still check status via a /track/<token>
link. Staff/admin surfaces (notifications, customer stats, broadcast) are
updated to treat guests the same as the existing walk-in sentinel user.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-27 20:22:31 +03:00
..
__init__.py Bilingual menu content + finish EN coverage across bot and Mini App 2026-08-27 16:38:10 +03:00
auth.py Add guest ordering for customers without Telegram 2026-08-27 20:22:31 +03:00
cart.py Add guest ordering for customers without Telegram 2026-08-27 20:22:31 +03:00
checkout.py Add guest ordering for customers without Telegram 2026-08-27 20:22:31 +03:00
me.py Add guest ordering for customers without Telegram 2026-08-27 20:22:31 +03:00
menu.py Bilingual menu content + finish EN coverage across bot and Mini App 2026-08-27 16:38:10 +03:00
orders.py Add guest ordering for customers without Telegram 2026-08-27 20:22:31 +03:00
payments.py Add guest ordering for customers without Telegram 2026-08-27 20:22:31 +03:00
payments_liqpay.py Add pluggable payment-provider layer; implement LiqPay alongside Monobank 2026-08-27 13:38:24 +03:00
settings.py Add optional English translation for the cafe's address 2026-08-27 16:52:27 +03:00