bot
commited on
Commit
·
3ef2f45
1
Parent(s):
9c959c8
fix
Browse files
main.py
CHANGED
@@ -336,6 +336,15 @@ async def perform_file_action(
|
|
336 |
if files["files"] is None:
|
337 |
await update.message.reply_text("❌未找到文件!!")
|
338 |
else:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
# 为每个文件创建按钮和操作选项
|
340 |
for file in files["files"]:
|
341 |
if file["kind"].lower() == "drive#folder":
|
|
|
336 |
if files["files"] is None:
|
337 |
await update.message.reply_text("❌未找到文件!!")
|
338 |
else:
|
339 |
+
if files["files"]["parent_id"] is not None:
|
340 |
+
keyboard.append(
|
341 |
+
[
|
342 |
+
InlineKeyboardButton(
|
343 |
+
f"返回上级",
|
344 |
+
callback_data=f"list_file:{files["files"]["parent_id"]}",
|
345 |
+
),
|
346 |
+
]
|
347 |
+
)
|
348 |
# 为每个文件创建按钮和操作选项
|
349 |
for file in files["files"]:
|
350 |
if file["kind"].lower() == "drive#folder":
|