style: reformat handlers and UI for readability

This commit is contained in:
2026-07-22 18:50:10 +05:00
parent 04f17ff8e2
commit e4de501472
10 changed files with 89 additions and 32 deletions
+16 -4
View File
@@ -66,7 +66,11 @@ def bot_details_keyboard(
[InlineKeyboardButton(text="🔐 2FA", callback_data=f"2fa_{bot_name}")]
)
keyboard.append(
[InlineKeyboardButton(text="⌚ Накрутка часов", callback_data=f"games_{bot_name}")]
[
InlineKeyboardButton(
text="⌚ Накрутка часов", callback_data=f"games_{bot_name}"
)
]
)
keyboard.append(
[
@@ -77,7 +81,11 @@ def bot_details_keyboard(
]
)
keyboard.append(
[InlineKeyboardButton(text="📦 Инвентарь", callback_data=f"inventory_{bot_name}")]
[
InlineKeyboardButton(
text="📦 Инвентарь", callback_data=f"inventory_{bot_name}"
)
]
)
keyboard.append([InlineKeyboardButton(text="🔙 Назад", callback_data="bots")])
return InlineKeyboardMarkup(inline_keyboard=keyboard)
@@ -114,7 +122,9 @@ def confirmations_keyboard(bot_name: str) -> InlineKeyboardMarkup:
)
def confirm_action_keyboard(confirm_data: str, cancel_data: str) -> InlineKeyboardMarkup:
def confirm_action_keyboard(
confirm_data: str, cancel_data: str
) -> InlineKeyboardMarkup:
return InlineKeyboardMarkup(
inline_keyboard=[
[InlineKeyboardButton(text="Да", callback_data=confirm_data)],
@@ -188,5 +198,7 @@ def console_keyboard() -> InlineKeyboardMarkup:
def delete_message_keyboard() -> InlineKeyboardMarkup:
return InlineKeyboardMarkup(
inline_keyboard=[[InlineKeyboardButton(text="Удалить", callback_data="delete_msg")]]
inline_keyboard=[
[InlineKeyboardButton(text="Удалить", callback_data="delete_msg")]
]
)