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