Standardize import order in handler modules

- Reorder imports in multiple handler files to follow a consistent pattern
- Move type-specific imports like Message and CallbackQuery to be more organized
- Ensure clean and uniform import statements across admin and handler modules
This commit is contained in:
Zakhar Izmaylov
2025-01-31 03:01:46 +03:00
parent 28e7c78601
commit 3741e4f3bf
8 changed files with 15 additions and 25 deletions
+2 -6
View File
@@ -131,9 +131,7 @@ async def handle_key_name_input(message: Message, state: FSMContext, session: An
AdminUserEditorCallback.filter(F.action == "users_send_message"),
IsAdminFilter(),
)
async def handle_send_message(
callback_query: CallbackQuery, callback_data: AdminUserEditorCallback, state: FSMContext
):
async def handle_send_message(callback_query: CallbackQuery, callback_data: AdminUserEditorCallback, state: FSMContext):
tg_id = callback_data.tg_id
await callback_query.message.edit_text(
@@ -162,9 +160,7 @@ async def handle_message_text_input(message: Message, state: FSMContext):
AdminUserEditorCallback.filter(F.action == "users_trial_restore"),
IsAdminFilter(),
)
async def handle_trial_restore(
callback_query: CallbackQuery, callback_data: AdminUserEditorCallback, session: Any
):
async def handle_trial_restore(callback_query: CallbackQuery, callback_data: AdminUserEditorCallback, session: Any):
tg_id = callback_data.tg_id
await update_trial(tg_id, 0, session)