加入转发视频功能

This commit is contained in:
liuwei
2025-06-13 15:05:36 +08:00
parent 09b5e20d28
commit 7f12e531f6
2 changed files with 10 additions and 1 deletions

View File

@@ -181,7 +181,16 @@ class GroupVirtualPlugin(MessagePluginInterface):
await self.bot.send_text_message(group["id"], f"{prefix}[图片]")
# 转发图片
xml_content = message.get("content", "")
self.LOG.debug(f"xml_content: {xml_content}")
await self.bot.send_cdn_img_msg(group["id"], xml_content)
elif msg_type == MessageType.VIDEO:
for group in chat_group["groups"]:
if group["id"] != roomid:
await self.bot.send_text_message(group["id"], f"{prefix}[视频]")
# 转发图片
xml_content = message.get("content", "")
self.LOG.debug(f"xml_content: {xml_content}")
await self.bot.send_cdn_video_msg(group["id"], xml_content)
def _get_chat_group(self, chat_group_id: str) -> Optional[Dict[str, Any]]:
"""获取虚拟聊天组"""