Add subscription link field to user model
- Add subscription_link column to users table (nullable, unique) - Add SUBSCRIPTION_URL to config settings - Update user creation to include subscription link from Remnawave - Add support subscription ticket creation with formatted message - Add "update link" button to main menu - Refactor support subscription formatting to include user details
This commit is contained in:
@@ -15,6 +15,7 @@ main_menu: InlineKeyboardMarkup = InlineKeyboardBuilder(
|
||||
InlineKeyboardButton(text="Наш Канал", url="https://goo.gle"),
|
||||
InlineKeyboardButton(text="Тех. Поддержка", callback_data="support"),
|
||||
],
|
||||
[InlineKeyboardButton(text="🔗 Обновить ссылку", callback_data="update_link")],
|
||||
]
|
||||
).as_markup()
|
||||
|
||||
@@ -90,7 +91,7 @@ def duration_selector(
|
||||
|
||||
payment_gateways: InlineKeyboardMarkup = InlineKeyboardBuilder(
|
||||
[
|
||||
[InlineKeyboardButton(text="✍️ Поддержка", callback_data="support")],
|
||||
[InlineKeyboardButton(text="✍️ Перейти в поддержку", callback_data="checkout")],
|
||||
[_return_to_menu_btn],
|
||||
]
|
||||
).as_markup()
|
||||
|
||||
Reference in New Issue
Block a user