Compare commits

...

2 Commits

Author SHA1 Message Date
mmmpipi 6e0be080aa
Merge a2ba3c2129 into e58c13c3b1 2026-01-18 22:37:06 +08:00
mmmpipi a2ba3c2129 feat: 添加at消息段支持 2026-01-18 14:24:53 +08:00
1 changed files with 11 additions and 0 deletions

View File

@ -68,6 +68,9 @@ class SendMessageHandleClass:
elif seg.type == "video":
video_path = seg.data
new_payload = cls.build_payload(payload, cls.handle_video_message(video_path), False)
elif seg.type == "at":
at_user_id = seg.data
new_payload = cls.build_payload(payload, cls.handle_at_message(at_user_id), False)
elif seg.type == "forward" and not in_forward:
forward_message_content: List[Dict] = seg.data
new_payload: List[Dict] = [
@ -293,3 +296,11 @@ class SendMessageHandleClass:
"type": "video",
"data": {"file": f"base64://{encoded_video}"},
}
@staticmethod
def handle_at_message(user_id: str) -> dict:
"""处理at消息"""
return {
"type": "at",
"data": {"qq": user_id},
}