Добавлен @property .me (присваивается при запуске бота)
This commit is contained in:
parent
d77288ea07
commit
5ae4de6816
@ -104,6 +104,12 @@ class Bot(BaseConnection):
|
|||||||
self.notify = notify
|
self.notify = notify
|
||||||
self.auto_requests = auto_requests
|
self.auto_requests = auto_requests
|
||||||
|
|
||||||
|
self._me: User = None
|
||||||
|
|
||||||
|
@property
|
||||||
|
def me(self):
|
||||||
|
return self._me
|
||||||
|
|
||||||
def _resolve_notify(self, notify: Optional[bool]) -> Optional[bool]:
|
def _resolve_notify(self, notify: Optional[bool]) -> Optional[bool]:
|
||||||
return notify if notify is not None else self.notify
|
return notify if notify is not None else self.notify
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user