bot commited on
Commit
130c113
·
1 Parent(s): 5b75005
Files changed (1) hide show
  1. main.py +4 -3
main.py CHANGED
@@ -234,10 +234,11 @@ async def handle_message(update: Update, context: ContextTypes.DEFAULT_TYPE):
234
  elif text.lower().startswith("share:"):
235
  share_id = text.split(":")[1]
236
  result = await THUNDERX_CLIENT.restore(share_id, None, None)
237
- if result["share_status_text"] is not None:
238
- await update.message.reply_text(f"操作结果:{result['share_status_text']}")
239
- else:
240
  await update.message.reply_text(f"❌未成功创建任务:{result},请稍后重试!!")
 
 
 
241
  else:
242
  await update.message.reply_text(f"收到不支持的消息:{text}")
243
 
 
234
  elif text.lower().startswith("share:"):
235
  share_id = text.split(":")[1]
236
  result = await THUNDERX_CLIENT.restore(share_id, None, None)
237
+ if isinstance(result, str):
 
 
238
  await update.message.reply_text(f"❌未成功创建任务:{result},请稍后重试!!")
239
+ else:
240
+ await update.message.reply_text(f"操作结果:{result['share_status_text']}")
241
+
242
  else:
243
  await update.message.reply_text(f"收到不支持的消息:{text}")
244