Commit Graph
14 Commits
Author SHA1 Message Date
admin 87f22fb249 fix(subscription): show expiry clock time (MSK) when under a day
- subscription_time_left: replace floor-div '23 ч.'/'мин.' branches with the
  concrete expiry timestamp when less than a full day remains
- add MSK_TIMEZONE (UTC+3) as display default; label time as '(МСК)'
- add shared subscription_status_text helper, use it in status menu,
  post-payment reply and dev confirmation instead of floor-rounded days
- tests: cover under-a-day clock format; fix stale to_thread mock
2026-10-30 13:04:38 +02:00
admin 26b533716a fix(subscription): grant one day for one-star plan 2026-10-29 20:00:26 +02:00
admin 60dc55a9b3 fix(subscription): allow zero-day dev confirmation 2026-10-29 13:31:24 +02:00
admin dc2ec6344b fix(subscription): process zero-day one-star payment 2026-10-29 13:03:55 +02:00
admin 0dc54a26b9 fix: use one-star subscription probe 2026-10-21 14:27:23 +02:00
admin 3819230b3e test: add zero-star invoice probe 2026-10-21 12:56:50 +02:00
admin 13230e3fe2 fix: simplify subscription payment messages 2026-10-20 21:29:44 +02:00
admin c32702c402 fix: simplify subscription payment messages 2026-10-20 21:13:51 +02:00
admin 112c3247e0 feat: add per-user analytics and stats report 2026-10-20 16:42:30 +02:00
admin c90af5b4df feat: show user id in subscription message 2026-10-08 23:13:05 +02:00
admin 36a17f7639 feat: add mode-based bot navigation 2026-10-08 15:56:32 +02:00
admin c02db5ada9 fix: isolate dev messages from production 2026-10-08 14:04:51 +02:00
admin 45b1c5b468 feat: dev-кнопка подтверждения тестовой оплаты 2026-10-08 13:32:07 +02:00
admin 3c8917c20a feat: настоящая оплата Telegram Stars вместо имитации
- payments.py: sendInvoice (XTR, 100 звёзд) -> pre_checkout_query -> successful_payment
- /subscribe больше не активирует подписку сам — только отправляет счёт
- handle_pre_checkout подтверждает только свой payload в XTR на 100 звёзд
- таблица payments по telegram_payment_charge_id защищает от двойного начисления
- 16 новых тестов платежей, старый тест заглушки переписан; 75 тестов OK
- Dockerfile копирует payments.py, VERSION 0.1.0+25
2026-10-07 10:35:51 +02:00