From be79ddc9a30598b0e66cf1158bc14daa086fd1c8 Mon Sep 17 00:00:00 2001 From: Moyuyanli <572490972@qq.com> Date: Fri, 21 Mar 2025 16:24:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=8E=BB=E6=8E=89=E8=B7=9Fpost=5Ftext?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=9B=B8=E5=90=8C=E7=9A=84=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/platform/sources/gewechat/client.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/astrbot/core/platform/sources/gewechat/client.py b/astrbot/core/platform/sources/gewechat/client.py index edc7afb55..d2f28f09d 100644 --- a/astrbot/core/platform/sources/gewechat/client.py +++ b/astrbot/core/platform/sources/gewechat/client.py @@ -666,16 +666,3 @@ class SimpleGewechatClient: json_blob = await resp.json() logger.debug(f"获取群信息结果: {json_blob}") return json_blob - - async def send_message(self, to_wxid, content): - payload = {"appId": self.appid, "toWxid": to_wxid, "content": content} - - async with aiohttp.ClientSession() as session: - async with session.post( - f"{self.base_url}/message/postText", - headers=self.headers, - json=payload, - ) as resp: - json_blob = await resp.json() - logger.debug(f"获取群信息结果: {json_blob}") - # return json_blob