mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 08:12:14 +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>",
|
if x.is_text() else f"<le>{escape_tag(str(x))}</le>",
|
||||||
self.message)) + '"')
|
self.message)) + '"')
|
||||||
|
|
||||||
|
@overrides(MessageEvent)
|
||||||
|
def get_session_id(self) -> str:
|
||||||
|
return f"group_{self.group_id}_{self.user_id}"
|
||||||
|
|
||||||
|
|
||||||
# Notice Events
|
# Notice Events
|
||||||
class NoticeEvent(Event):
|
class NoticeEvent(Event):
|
||||||
|
@ -143,3 +143,7 @@ class GroupMessageEvent(MessageEvent):
|
|||||||
@overrides(MessageEvent)
|
@overrides(MessageEvent)
|
||||||
def is_tome(self) -> bool:
|
def is_tome(self) -> bool:
|
||||||
return self.isInAtList
|
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