mirror of
https://github.com/BEDOLAGA-DEV/remnawave-bedolaga-telegram-bot.git
synced 2026-03-02 16:20:49 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user