From 18639002994515ad8e1a931aabc3e29ae6bfbd63 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 31 Oct 2020 17:15:47 +0100 Subject: [PATCH] Fix of a small mess up --- pyrogram/types/user_and_chats/chat_member.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/pyrogram/types/user_and_chats/chat_member.py b/pyrogram/types/user_and_chats/chat_member.py index 749e7065..69ab4955 100644 --- a/pyrogram/types/user_and_chats/chat_member.py +++ b/pyrogram/types/user_and_chats/chat_member.py @@ -217,26 +217,6 @@ class ChatMember(Object): status="creator", client=client ) - - if isinstance(member, raw.types.ChannelParticipantCreator): - permissions = member.admin_rights - return ChatMember( - user=user, - status="creator", - title=getattr(member, "rank", None), - joined_date=member.date, - invited_by=invited_by, - can_be_edited=member.can_edit, - can_change_info=permissions.change_info, - can_post_messages=permissions.post_messages, - can_edit_messages=permissions.edit_messages, - can_delete_messages=permissions.delete_messages, - can_restrict_members=permissions.ban_users, - can_invite_users=permissions.invite_users, - can_pin_messages=permissions.pin_messages, - can_promote_members=permissions.add_admins, - client=client - ) if isinstance(member, raw.types.ChatParticipantAdmin): return ChatMember(