mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
15 lines
322 B
Python
15 lines
322 B
Python
from abc import ABC
|
|
|
|
from aiogram.handlers import BaseHandler
|
|
from aiogram.types import ChatMemberUpdated, User
|
|
|
|
|
|
class ChatMemberHandler(BaseHandler[ChatMemberUpdated], ABC):
|
|
"""
|
|
Base class for chat member updated events
|
|
"""
|
|
|
|
@property
|
|
def from_user(self) -> User:
|
|
return self.event.from_user
|