From 924d5c3e124d1b0715aa00c462ae9a0abf6387fb Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Sat, 15 Nov 2025 15:03:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BC=9A=E8=AF=9D=E6=B3=A8?= =?UTF-8?q?=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Plugins/WPSAPI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/WPSAPI.py b/Plugins/WPSAPI.py index f83f0c8..abc1b7a 100644 --- a/Plugins/WPSAPI.py +++ b/Plugins/WPSAPI.py @@ -1006,7 +1006,7 @@ class WPSAPI(BasicWPSInterface): @override def get_webhook_url(self, message: str, chat_id: int, user_id: int) -> str: - webhook_url = ProjectConfig().GetFile(f"webhook_url/{chat_id}",False).LoadAsText() + webhook_url = ProjectConfig().GetFile(f"webhook_url/{chat_id}",True).LoadAsText() if webhook_url == "": webhook_url = MAIN_WEBHOOK_URL return webhook_url @@ -1069,7 +1069,7 @@ class WPSAPIWebhook(WPSAPI): @override async def callback(self, message: str, chat_id: int, user_id: int) -> str|None: - ProjectConfig().GetFile(f"webhook_url/{chat_id}",False).SaveAsText(message) + ProjectConfig().GetFile(f"webhook_url/{chat_id}",True).SaveAsText(message) return await self.send_markdown_message(f"会话注册成功", chat_id, user_id) logger.SaveProperties() \ No newline at end of file