Add BaseSession.self_id property

This commit is contained in:
Richard Chien 2019-01-05 22:36:47 +08:00
parent 1b6567afe1
commit 16c15bca41

View File

@ -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,