mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Tes fix perm for channel
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
parent
49f7ea6835
commit
e73a0d2e2b
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ def adminsOnly(
|
|||
def wrapper(func):
|
||||
async def decorator(client, message):
|
||||
permissions = ""
|
||||
if message.chat.type != pyrogram.enums.ChatType.SUPERGROUP:
|
||||
if message.chat.type != pyrogram.enums.ChatType.SUPERGROUP and not ALLOW_CHANNEL:
|
||||
return await message.reply_text(
|
||||
"This command can be used in supergroups only.",
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue