mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 11:04:51 +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):
|
def wrapper(func):
|
||||||
async def decorator(client, message):
|
async def decorator(client, message):
|
||||||
permissions = ""
|
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(
|
return await message.reply_text(
|
||||||
"This command can be used in supergroups only.",
|
"This command can be used in supergroups only.",
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue