From 47d5889612121464805022028de62a9ef807a200 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 30 Apr 2018 19:44:26 +0200 Subject: [PATCH] Make ChatAction.from_string() static --- pyrogram/client/chat_action.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/chat_action.py b/pyrogram/client/chat_action.py index 2296bcac..62cd5891 100644 --- a/pyrogram/client/chat_action.py +++ b/pyrogram/client/chat_action.py @@ -66,8 +66,8 @@ class ChatAction(Enum): UPLOAD_VIDEO_NOTE = types.SendMessageUploadRoundAction """User is uploading a round video note.""" - @classmethod - def from_string(cls, action: str) -> "ChatAction": + @staticmethod + def from_string(action: str) -> "ChatAction": for a in iter(ChatAction): if a.name.lower() == action.lower(): return a