bot
commited on
Commit
·
f64a77f
1
Parent(s):
63e542f
fix
Browse files
main.py
CHANGED
@@ -322,6 +322,8 @@ async def handle_tasks_operation(update: Update, context: CallbackContext):
|
|
322 |
query = update.callback_query
|
323 |
await query.answer()
|
324 |
|
|
|
|
|
325 |
# 获取操作类型和文件 ID
|
326 |
action, task_id = query.data.split(":")
|
327 |
|
@@ -402,9 +404,7 @@ async def init_client():
|
|
402 |
TG_BOT_APPLICATION.add_handler(CommandHandler("emptytrash", tg_emptytrash))
|
403 |
TG_BOT_APPLICATION.add_handler(CommandHandler("tasks", tg_show_task))
|
404 |
TG_BOT_APPLICATION.add_handler(
|
405 |
-
CallbackQueryHandler(
|
406 |
-
handle_tasks_operation, pattern="^(delete_task|copy_task):"
|
407 |
-
)
|
408 |
)
|
409 |
# 处理取消任务操作
|
410 |
TG_BOT_APPLICATION.add_handler(
|
|
|
322 |
query = update.callback_query
|
323 |
await query.answer()
|
324 |
|
325 |
+
print("#################test############")
|
326 |
+
|
327 |
# 获取操作类型和文件 ID
|
328 |
action, task_id = query.data.split(":")
|
329 |
|
|
|
404 |
TG_BOT_APPLICATION.add_handler(CommandHandler("emptytrash", tg_emptytrash))
|
405 |
TG_BOT_APPLICATION.add_handler(CommandHandler("tasks", tg_show_task))
|
406 |
TG_BOT_APPLICATION.add_handler(
|
407 |
+
CallbackQueryHandler(handle_tasks_operation, pattern="^delete_task")
|
|
|
|
|
408 |
)
|
409 |
# 处理取消任务操作
|
410 |
TG_BOT_APPLICATION.add_handler(
|