Implement billing status feature in Telegram bot
- 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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user