bot commited on
Commit
5588a27
·
1 Parent(s): 7e68dfe
Files changed (1) hide show
  1. main.py +10 -0
main.py CHANGED
@@ -346,9 +346,19 @@ async def perform_file_action(
346
  files = await THUNDERX_CLIENT.file_list(100, file_id, "", {})
347
  keyboard = []
348
 
 
 
349
  if files["files"] is None:
350
  await update.message.reply_text("❌未找到文件!!")
351
  else:
 
 
 
 
 
 
 
 
352
  # 为每个文件创建按钮和操作选项
353
  for file in files["files"]:
354
  if file["kind"].lower() == "drive#folder":
 
346
  files = await THUNDERX_CLIENT.file_list(100, file_id, "", {})
347
  keyboard = []
348
 
349
+ print(files["files"])
350
+
351
  if files["files"] is None:
352
  await update.message.reply_text("❌未找到文件!!")
353
  else:
354
+ keyboard.append(
355
+ [
356
+ InlineKeyboardButton(
357
+ f"↩️返回上级",
358
+ callback_data=f"download_file:{parent_id}:{parent_id}",
359
+ ),
360
+ ]
361
+ )
362
  # 为每个文件创建按钮和操作选项
363
  for file in files["files"]:
364
  if file["kind"].lower() == "drive#folder":