diff --git a/.gitignore b/.gitignore index 2c9c052d..2cbf5ccd 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,4 @@ Thumbs.db nginx.conf scripts/nginx.sh +scripts/ diff --git a/handlers/admin/admin_panel.py b/handlers/admin/admin_panel.py index c840524f..9c29a794 100644 --- a/handlers/admin/admin_panel.py +++ b/handlers/admin/admin_panel.py @@ -23,7 +23,7 @@ class UserEditorState(StatesGroup): displaying_user_info = State() -@router.message(Command("admin"), IsAdminFilter()) +@router.message(Command("admin"),F.data == "admin", IsAdminFilter()) async def handle_admin_command(message: types.Message): builder = InlineKeyboardBuilder() builder.row( diff --git a/handlers/payments/stars_pay.py b/handlers/payments/stars_pay.py index a628d3b0..1f9607f3 100644 --- a/handlers/payments/stars_pay.py +++ b/handlers/payments/stars_pay.py @@ -51,6 +51,11 @@ async def process_callback_pay_stars( tg_id = callback_query.from_user.id builder = InlineKeyboardBuilder() + builder.row( + InlineKeyboardButton( + text="🤖 Бот для покупки звезд", url="https://t.me/PremiumBot" + ) + ) for i in range(0, len(PAYMENT_OPTIONS), 2): if i + 1 < len(PAYMENT_OPTIONS): @@ -76,11 +81,6 @@ async def process_callback_pay_stars( text="💰 Ввести свою сумму", callback_data="enter_custom_amount_stars" ) ) - builder.row( - InlineKeyboardButton( - text="🤖 Бот для покупки звезд", url="https://t.me/PremiumBot" - ) - ) builder.row(InlineKeyboardButton(text="⬅️ Назад", callback_data="pay")) key_count = await get_key_count(tg_id)