diff --git a/pyrogram/types/user_and_chats/emoji_status.py b/pyrogram/types/user_and_chats/emoji_status.py index 99159dbc..746c98ef 100644 --- a/pyrogram/types/user_and_chats/emoji_status.py +++ b/pyrogram/types/user_and_chats/emoji_status.py @@ -50,9 +50,6 @@ class EmojiStatus(Object): @staticmethod def _parse(client, emoji_status: "raw.base.EmojiStatus") -> Optional["EmojiStatus"]: - if isinstance(emoji_status, raw.types.EmojiStatusEmpty): - return None - if isinstance(emoji_status, raw.types.EmojiStatus): return EmojiStatus( client=client, @@ -65,3 +62,5 @@ class EmojiStatus(Object): custom_emoji_id=emoji_status.document_id, until_date=utils.timestamp_to_datetime(emoji_status.until) ) + + return None