fix: correct broadcast button deep-links for cabinet mode

- promocode button now opens /balance instead of /subscription
- add menu_promocode to CALLBACK_TO_CABINET_PATH and style mappings
This commit is contained in:
Fringg
2026-02-24 06:33:56 +03:00
parent 25f014fd89
commit e5fa45f74f

View File

@@ -22,6 +22,7 @@ CALLBACK_TO_CABINET_PATH: dict[str, str] = {
'buy_traffic': '/subscription',
'menu_referrals': '/referral',
'menu_referral': '/referral',
'menu_promocode': '/balance',
'menu_support': '/support',
'menu_info': '/info',
'menu_profile': '/profile',
@@ -44,6 +45,7 @@ CALLBACK_TO_CABINET_STYLE: dict[str, str] = {
'buy_traffic': 'success',
'menu_referrals': 'success',
'menu_referral': 'success',
'menu_promocode': 'primary',
'menu_support': 'primary',
'menu_info': 'primary',
'menu_profile': 'primary',
@@ -54,7 +56,7 @@ CALLBACK_TO_CABINET_STYLE: dict[str, str] = {
BUTTON_KEY_TO_CABINET_PATH: dict[str, str] = {
'balance': '/balance/top-up',
'referrals': '/referral',
'promocode': '/subscription',
'promocode': '/balance',
'connect': '/subscription',
'subscription': '/subscription',
'support': '/support',