mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-11-10 03:46:42 +00:00
Add BaseSession.self_id property
This commit is contained in:
@@ -10,6 +10,10 @@ class BaseSession:
|
||||
self.bot = bot
|
||||
self.ctx = ctx
|
||||
|
||||
@property
|
||||
def self_id(self) -> int:
|
||||
return self.ctx['self_id']
|
||||
|
||||
async def send(self, message: Message_T, *,
|
||||
at_sender: bool = False,
|
||||
ensure_private: bool = False,
|
||||
|
||||
Reference in New Issue
Block a user