fix: OneBot v11 request 类事件 补全 session_id 的获取

This commit is contained in:
Soulter
2025-04-26 21:00:25 +08:00
parent 7abb4087b3
commit a01617b45c
@@ -120,6 +120,12 @@ class AiocqhttpAdapter(Platform):
abm.type = MessageType.FRIEND_MESSAGE
if self.unique_session and abm.type == MessageType.GROUP_MESSAGE:
abm.session_id = str(abm.sender.user_id) + "_" + str(event.group_id)
else:
abm.session_id = (
str(event.group_id)
if abm.type == MessageType.GROUP_MESSAGE
else abm.sender.user_id
)
abm.message_str = ""
abm.message = []
abm.timestamp = int(time.time())