#TODO Admin and bash

This commit is contained in:
Zakhar Izmaylov
2024-11-16 23:56:45 +03:00
parent f5b01c7b49
commit d3e88402cb
3 changed files with 7 additions and 6 deletions
+1
View File
@@ -51,3 +51,4 @@ Thumbs.db
nginx.conf
scripts/nginx.sh
scripts/
+1 -1
View File
@@ -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(
+5 -5
View File
@@ -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)