mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 00:55:07 +08:00
Add BaseSession.self_id property
This commit is contained in:
parent
1b6567afe1
commit
16c15bca41
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user