bot commited on
Commit
53d3325
·
1 Parent(s): 695ef74
Files changed (1) hide show
  1. main.py +3 -5
main.py CHANGED
@@ -536,11 +536,9 @@ async def init_client():
536
  ########## 文件操作 ###############
537
 
538
  TG_BOT_APPLICATION.add_handler(
539
- CallbackQueryHandler(tg_show_files, pattern="^list_file:")
540
- )
541
-
542
- TG_BOT_APPLICATION.add_handler(
543
- CallbackQueryHandler(handle_file_operation, pattern="^delete_file:")
544
  )
545
  # 处理取消任务操作
546
  TG_BOT_APPLICATION.add_handler(
 
536
  ########## 文件操作 ###############
537
 
538
  TG_BOT_APPLICATION.add_handler(
539
+ CallbackQueryHandler(
540
+ handle_file_operation, pattern="^(delete_file|list_file|download_file):"
541
+ )
 
 
542
  )
543
  # 处理取消任务操作
544
  TG_BOT_APPLICATION.add_handler(