mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Use classmethod for ChatMember resolve method
This commit is contained in:
parent
e8c1728835
commit
098880eda5
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
|
||||
|
||||
@staticmethod
|
||||
def resolve(**kwargs) -> "ChatMember":
|
||||
@classmethod
|
||||
def resolve(cls, **kwargs) -> "ChatMember":
|
||||
status = kwargs.get("status")
|
||||
mapping = {
|
||||
ChatMemberStatus.OWNER: ChatMemberOwner,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue