bot commited on
Commit
de524b5
·
1 Parent(s): 62c3a9b
Files changed (1) hide show
  1. main.py +0 -10
main.py CHANGED
@@ -325,18 +325,8 @@ async def handle_file_operation(update: Update, context: CallbackContext):
325
  )
326
  else:
327
  # 不需要确认的操作,直接处理
328
- await perform_file_action(update, context, action, file_id)
329
-
330
-
331
- async def perform_file_action(
332
- update: Update, context: CallbackContext, action: str, file_id: str
333
- ):
334
- query = update.callback_query
335
- await query.answer()
336
- if action == "list_file":
337
  context.user_data["file_id"] = file_id
338
  await tg_show_files(update, context)
339
- # await update.callback_query.edit_message_text(f"你选择了取消任务:{file_id}")
340
 
341
 
342
  #################### 离线任务处理 ##########################
 
325
  )
326
  else:
327
  # 不需要确认的操作,直接处理
 
 
 
 
 
 
 
 
 
328
  context.user_data["file_id"] = file_id
329
  await tg_show_files(update, context)
 
330
 
331
 
332
  #################### 离线任务处理 ##########################