Skip to content

Commit

Permalink
Tes fix perm for channel
Browse files Browse the repository at this point in the history
Signed-off-by: Yasir Aris M <[email protected]>
  • Loading branch information
yasirarism committed Oct 23, 2023
1 parent 49f7ea6 commit e73a0d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misskaty/core/misskaty_patch/decorators/adminsOnly.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ async def start(client, message):
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.",
)
Expand Down

0 comments on commit e73a0d2

Please sign in to comment.