测试入群提醒。

This commit is contained in:
liuwei
2025-04-30 16:37:10 +08:00
parent 7886e5b5d0
commit 7f93f14432
2 changed files with 1 additions and 7 deletions

View File

@@ -174,12 +174,6 @@ class GroupMemberChangePlugin(MessagePluginInterface):
<commenturl></commenturl>
"""
await bot.send_link_xml_message(xml_content, roomid)
# if members:
# gewe_client.client.post_link(gewe_client.client.app_id, sender,
# title=f"👏欢迎 {nickname} 加入群聊!🎉",
# description=f"⌚时间:{now}\n",
# url="https://hot.imsyy.top/#/",
# thumb_url=profile.data[0].big_head_img_url)
return True, "已发送进群欢迎语"
return False, "无需执行"

View File

@@ -471,7 +471,7 @@ class MessageMixin(WechatAPIClientBase):
async with aiohttp.ClientSession() as session:
json_param = {"Wxid": self.wxid, "ToWxid": wxid, "Md5": md5, "TotalLen": total_length}
response = await session.post(f'http://{self.ip}:{self.port}/SendEmojiMsg', json=json_param)
response = await session.post(f'http://{self.ip}:{self.port}/api/Msg/SendEmoji', json=json_param)
json_resp = await response.json()
if json_resp.get("Success"):