加入转发视频功能
This commit is contained in:
@@ -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]]:
|
||||
"""获取虚拟聊天组"""
|
||||
|
||||
Reference in New Issue
Block a user