Skip to content

Commit

Permalink
Update admin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgojoof6eyes authored Apr 1, 2023
1 parent f6613c2 commit dec3fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Powers/plugins/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
@Gojo.on_message(command("adminlist"))
async def adminlist_show(_, m: Message):
global ADMIN_CACHE
if m.chat.type == ChatType.CHANNEL:
if m.chat.type not in [ChatType.SUPERGROUP,ChatType.GROUP]:
return await m.reply_text(
text="This command is made to be used in groups only!",
)
Expand Down

0 comments on commit dec3fd0

Please sign in to comment.