mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 09:05:04 +08:00
💥 change cqhttp ding session id
This commit is contained in:
parent
4661adc564
commit
7f27957164
@ -199,6 +199,10 @@ class GroupMessageEvent(MessageEvent):
|
||||
if x.is_text() else f"<le>{escape_tag(str(x))}</le>",
|
||||
self.message)) + '"')
|
||||
|
||||
@overrides(MessageEvent)
|
||||
def get_session_id(self) -> str:
|
||||
return f"group_{self.group_id}_{self.user_id}"
|
||||
|
||||
|
||||
# Notice Events
|
||||
class NoticeEvent(Event):
|
||||
|
@ -143,3 +143,7 @@ class GroupMessageEvent(MessageEvent):
|
||||
@overrides(MessageEvent)
|
||||
def is_tome(self) -> bool:
|
||||
return self.isInAtList
|
||||
|
||||
@overrides(MessageEvent)
|
||||
def get_session_id(self) -> str:
|
||||
return f"group_{self.conversationId}_{self.senderId}"
|
||||
|
Loading…
Reference in New Issue
Block a user