Skip to content

Commit

Permalink
fixing Promote/demote Bug (UsergeTeam#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishna-Singhal authored Aug 3, 2020
1 parent 0f9f029 commit 02e489e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userge/plugins/admin/gadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def promote_usr(message: Message):
get_group = await message.client.get_chat(chat_id)
check_user = await message.client.get_chat_member(message.chat.id, message.from_user.id)

if check_user.can_promote_members:
if (check_user.status == "creator" or check_user.can_promote_members):

await message.edit("`Trying to Promote User.. Hang on!! ⏳`")

Expand Down Expand Up @@ -137,7 +137,7 @@ async def demote_usr(message: Message):
get_group = await message.client.get_chat(chat_id)
check_user = await message.client.get_chat_member(message.chat.id, message.from_user.id)

if check_user.can_promote_members:
if (check_user.status == "creator" or check_user.can_promote_members):

await message.edit("`Trying to Demote User.. Hang on!! ⏳`")

Expand Down

0 comments on commit 02e489e

Please sign in to comment.