From 10b45ec226d4df767720b158ef65aba5af021f01 Mon Sep 17 00:00:00 2001 From: Zakhar Izmaylov Date: Sun, 17 Nov 2024 16:19:47 +0300 Subject: [PATCH] Add button --- handlers/keys/key_management.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/handlers/keys/key_management.py b/handlers/keys/key_management.py index de856809..9f50f9d8 100644 --- a/handlers/keys/key_management.py +++ b/handlers/keys/key_management.py @@ -9,7 +9,7 @@ from aiogram.fsm.state import State, StatesGroup from aiogram.types import CallbackQuery, InlineKeyboardButton, InlineKeyboardMarkup, Message from bot import bot, dp -from config import CONNECT_ANDROID, CONNECT_IOS, DATABASE_URL, DOWNLOAD_ANDROID, DOWNLOAD_IOS, PUBLIC_LINK +from config import CONNECT_ANDROID, CONNECT_IOS, DATABASE_URL, DOWNLOAD_ANDROID, DOWNLOAD_IOS, PUBLIC_LINK,SUPPORT_CHAT_URL from database import add_connection, get_balance, store_key, update_balance from handlers.instructions.instructions import send_instructions from handlers.keys.key_utils import create_key_on_cluster @@ -202,6 +202,10 @@ async def handle_key_name_input(message: Message, state: FSMContext): logger.info(f"Generated public link for the key: {public_link}") + button_support = InlineKeyboardButton( + text="💬 Поддержка", url=SUPPORT_CHAT_URL + ) + button_profile = InlineKeyboardButton( text="👤 Личный кабинет", callback_data="view_profile" ) @@ -221,6 +225,7 @@ async def handle_key_name_input(message: Message, state: FSMContext): keyboard = InlineKeyboardMarkup( inline_keyboard=[ + [button_support] [button_download_ios, button_download_android], [button_iphone, button_android], [button_profile],