mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-28 16:51:26 +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