Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
·
56fee1b
1
Parent(s):
ffbc3b8
Update admin.py
Browse files- 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
|
| 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 |
)
|