From 221dffef1b8bc0c6a3f5aaf95ff6bb973dc3d058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Tue, 14 Mar 2023 15:53:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Modify=20the=20text=20of=20the?= =?UTF-8?q?=20reply?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/genshin/pay_log.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/genshin/pay_log.py b/plugins/genshin/pay_log.py index 20fa6bd7..603ee9ca 100644 --- a/plugins/genshin/pay_log.py +++ b/plugins/genshin/pay_log.py @@ -108,8 +108,11 @@ class PayLogPlugin(Plugin.Conversation): message = update.effective_message user = update.effective_user if message.document: - await self.import_from_file(user, message) - return ConversationHandler.END + await message.reply_text("呜呜呜~本次导入不支持文件导入,请尝试获取连接") + return INPUT_URL + if not message.text: + await message.reply_text("呜呜呜~输入错误,请尝试重新获取连接") + return INPUT_URL authkey = from_url_get_authkey(message.text) reply = await message.reply_text("小派蒙正在从服务器获取数据,请稍后") await message.reply_chat_action(ChatAction.TYPING) @@ -228,7 +231,6 @@ class PayLogPlugin(Plugin.Conversation): "未查询到您所绑定的账号信息,请先私聊派蒙绑定账号", reply_markup=InlineKeyboardMarkup(buttons) ) self.add_delete_message_job(reply_message, delay=30) - self.add_delete_message_job(message, delay=30) else: await message.reply_text("未查询到您所绑定的账号信息,请先绑定账号", reply_markup=InlineKeyboardMarkup(buttons))