Commit Graph

9 Commits

Author SHA1 Message Date
e3e204d7af feat: enhance subscription management with discount calculations and update support messages 2026-04-22 17:41:44 +07:00
78a0ef9750 feat: implement referral payment system and enhance ticket management 2026-04-18 22:34:15 +07:00
3d19d9189b feat: add /support command and improve fallback message
- Add `/support` command handler to initiate support flow via direct command
  (previously only accessible via callback button)
- Update `UNDEFINED_MESSAGE` to guide users toward `/support` and `/start`
  when they use undefined commands
2026-04-15 20:36:49 +07:00
606aa4b89f feat: add admin promotion broadcast system and psql health check
- Add `/push` command for admins to broadcast messages to all users
  with approve/decline confirmation flow (handlers/ads.py)
- Add common handler for undefined commands and delete callback
- Add `UserRepository.get_users()` to fetch all users
- Add `UserService.send_promotion_to_users()` with error logging
- Add promotion confirmation keyboard and FSM state
- Add PostgreSQL availability check in startup.sh before migrations
- Add new text constants for promotion flow
2026-04-15 20:19:07 +07:00
0ac8ed8d64 Update project configuration and codebase 2026-04-12 12:19:53 +07:00
0ed0ad2b92 Add referral system and user balance tracking
Introduce balance field to User model with Alembic migration. Add
referral menu, admin /refpay command, and deep link sharing. Update
Dockerfile to multi-stage build and add Postgres service to compose.
Fix deep link parsing logic and conditional proxy initialization.
2026-04-10 22:20:53 +07:00
2bb12f2ff8 somethjijngs 2026-04-08 20:33:18 +07:00
930fabc028 Implement buy flow and migrate DTOs to schemas
Move DTO definitions from dto/ to schemas/ and update imports.
Add buy handler with FSM state management for device selection,
whitelist toggling, and duration choice. Include pricing logic,
inline keyboards, and new configuration fields.
2026-04-08 19:34:25 +07:00
fc45816eba first com2 2026-04-08 17:10:36 +07:00