From 7bc4c9ef6e6dc357cbc4623f321dd2a434e53d0c Mon Sep 17 00:00:00 2001 From: Vladless Date: Wed, 13 Nov 2024 04:04:40 +0300 Subject: [PATCH] redesign/bug fixes/admin trial --- handlers/start.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/handlers/start.py b/handlers/start.py index 7dec1498..652fa51b 100644 --- a/handlers/start.py +++ b/handlers/start.py @@ -8,7 +8,7 @@ from aiogram.utils.keyboard import InlineKeyboardBuilder from loguru import logger from bot import bot -from config import APP_URL, CHANNEL_URL, DATABASE_URL, SUPPORT_CHAT_URL +from config import APP_URL, CHANNEL_URL, DATABASE_URL, SUPPORT_CHAT_URL, DOWNLOAD_IOS, DOWNLOAD_ANDROID, CONNECT_ANDROID, CONNECT_IOS from database import add_connection, add_referral, check_connection_exists, get_trial from handlers.keys.trial_key import create_trial_key from handlers.texts import INSTRUCTIONS_TRIAL, WELCOME_TEXT, get_about_vpn @@ -108,22 +108,22 @@ async def handle_connect_vpn(callback_query: CallbackQuery): builder.row( InlineKeyboardButton( text="🍏 Скачать для iOS", - url="https://apps.apple.com/ru/app/v2raytun/id6476628951", + url=DOWNLOAD_IOS, ), InlineKeyboardButton( text="🤖 Скачать для Android", - url="https://play.google.com/store/apps/details?id=com.v2raytun.android&hl=ru", + url=DOWNLOAD_ANDROID, ), ) builder.row( InlineKeyboardButton( text="🍏 Подключить на iOS", - url=f'{APP_URL}/?url=v2raytun://import/{trial_key_info["key"]}', + url=f'{CONNECT_IOS}{trial_key_info["key"]}', ), InlineKeyboardButton( text="🤖 Подключить на Android", - url=f'{APP_URL}/?url=v2raytun://import-sub?url={trial_key_info["key"]}', + url=f'{CONNECT_ANDROID}{trial_key_info["key"]}', ), )