Implement billing status feature in Telegram bot
CI / Backend (build + test) (push) Successful in 1m20s
CI / Frontend (lint + typecheck + build) (push) Successful in 32s

- Added a new command `/billing` and a corresponding menu option for users with billing roles to check their payment status.
- Implemented `HandleBillingStatusAsync` method to retrieve and display billing information, including the payment expiration date and remaining time in a user-friendly format.
- Updated the main menu to conditionally show the billing status option based on the user's role.
- Enhanced the `PaidUntilBadge` component to format and display the remaining time until the next payment in both days and hours/minutes.
- Updated documentation to reflect the new billing status feature and its usage in the Telegram bot.
This commit is contained in:
Leonid Pershin
2026-07-19 05:04:54 +03:00
parent 450ad1ea1f
commit e088e302e9
6 changed files with 178 additions and 18 deletions
+4
View File
@@ -112,6 +112,8 @@ const resources = {
neverPaidShort: 'Не оплачено',
expiredShort: 'Истекло',
daysRemaining: '{{count}} дн.',
hoursMinutesRemaining: '{{hours}} ч {{minutes}} мин',
minutesRemaining: '{{count}} мин',
newRequest: 'Оформить оплату',
period: 'Период',
periods: {
@@ -626,6 +628,8 @@ const resources = {
neverPaidShort: 'Not paid',
expiredShort: 'Expired',
daysRemaining: '{{count}}d',
hoursMinutesRemaining: '{{hours}}h {{minutes}}m',
minutesRemaining: '{{count}}m',
newRequest: 'Set up payment',
period: 'Period',
periods: {