mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
refactor: resolve is a static method
This commit is contained in:
parent
b67406c2ac
commit
08e3100c47
1 changed files with 2 additions and 2 deletions
|
|
@ -64,8 +64,8 @@ class ChatMember(base.TelegramObject):
|
|||
def __int__(self) -> int:
|
||||
return self.user.id
|
||||
|
||||
@classmethod
|
||||
def resolve(cls, **kwargs) -> "ChatMember":
|
||||
@staticmethod
|
||||
def resolve(**kwargs) -> "ChatMember":
|
||||
status = kwargs.get("status")
|
||||
mapping = {
|
||||
ChatMemberStatus.OWNER: ChatMemberOwner,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue