fix:去掉跟post_text功能相同的接口方法
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user