Skip to content

Commit

Permalink
fix: 修复频道私聊且独立会话下的报错
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulter committed Feb 5, 2024
1 parent 5944ed6 commit 17948c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/platform/qq_official.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async def handle_msg(self, message: NakuruGuildMessage, is_group: bool):
self.logger.log(f"{message.sender.nickname}({message.sender.tiny_id}{_t}) -> {self.parse_message_outline(message)}", tag="QQ_OFFICIAL")
# 解析出 session_id
if self.unique_session or not is_group:
session_id = message.sesnder.user_id
session_id = message.sender.user_id
else:
session_id = message.channel_id

Expand Down

0 comments on commit 17948c5

Please sign in to comment.