This commit is contained in:
jrootjunior 2019-12-12 12:52:49 +02:00
parent b30e4e77ad
commit ce7b5f70e0
2 changed files with 4 additions and 2 deletions

View file

@ -9,6 +9,7 @@ class BaseHandlerMixin:
"""
Typed mixin. Do nothing.
"""
event: TelegramObject
data: Dict[str, Any]
@ -17,6 +18,7 @@ class _HandlerBotMixin(BaseHandlerMixin):
"""
Mixin adds bot attribute
"""
@property
def bot(self) -> Bot:
if "bot" in self.data: