Captain Ezio commited on
Commit
3367a59
·
1 Parent(s): 2607a17

Update admin.py

Browse files
Files changed (1) hide show
  1. Powers/plugins/admin.py +1 -1
Powers/plugins/admin.py CHANGED
@@ -27,7 +27,7 @@ from Powers.vars import Config
27
  @Gojo.on_message(command("adminlist"))
28
  async def adminlist_show(_, m: Message):
29
  global ADMIN_CACHE
30
- if m.chat.type == ChatType.CHANNEL:
31
  return await m.reply_text(
32
  text="This command is made to be used in groups only!",
33
  )
 
27
  @Gojo.on_message(command("adminlist"))
28
  async def adminlist_show(_, m: Message):
29
  global ADMIN_CACHE
30
+ if m.chat.type not in [ChatType.SUPERGROUP,ChatType.GROUP]:
31
  return await m.reply_text(
32
  text="This command is made to be used in groups only!",
33
  )