#TODO Admin and bash
This commit is contained in:
@@ -51,3 +51,4 @@ Thumbs.db
|
|||||||
|
|
||||||
nginx.conf
|
nginx.conf
|
||||||
scripts/nginx.sh
|
scripts/nginx.sh
|
||||||
|
scripts/
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class UserEditorState(StatesGroup):
|
|||||||
displaying_user_info = State()
|
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):
|
async def handle_admin_command(message: types.Message):
|
||||||
builder = InlineKeyboardBuilder()
|
builder = InlineKeyboardBuilder()
|
||||||
builder.row(
|
builder.row(
|
||||||
|
|||||||
@@ -51,6 +51,11 @@ async def process_callback_pay_stars(
|
|||||||
tg_id = callback_query.from_user.id
|
tg_id = callback_query.from_user.id
|
||||||
|
|
||||||
builder = InlineKeyboardBuilder()
|
builder = InlineKeyboardBuilder()
|
||||||
|
builder.row(
|
||||||
|
InlineKeyboardButton(
|
||||||
|
text="🤖 Бот для покупки звезд", url="https://t.me/PremiumBot"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
for i in range(0, len(PAYMENT_OPTIONS), 2):
|
for i in range(0, len(PAYMENT_OPTIONS), 2):
|
||||||
if i + 1 < len(PAYMENT_OPTIONS):
|
if i + 1 < len(PAYMENT_OPTIONS):
|
||||||
@@ -76,11 +81,6 @@ async def process_callback_pay_stars(
|
|||||||
text="💰 Ввести свою сумму", callback_data="enter_custom_amount_stars"
|
text="💰 Ввести свою сумму", callback_data="enter_custom_amount_stars"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
builder.row(
|
|
||||||
InlineKeyboardButton(
|
|
||||||
text="🤖 Бот для покупки звезд", url="https://t.me/PremiumBot"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
builder.row(InlineKeyboardButton(text="⬅️ Назад", callback_data="pay"))
|
builder.row(InlineKeyboardButton(text="⬅️ Назад", callback_data="pay"))
|
||||||
|
|
||||||
key_count = await get_key_count(tg_id)
|
key_count = await get_key_count(tg_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user