mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Fixed lock all
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
parent
0824a476b3
commit
3e3cca2750
1 changed files with 1 additions and 1 deletions
|
|
@ -165,7 +165,7 @@ async def locks_func(_, message):
|
|||
await tg_lock(message, permissions, data[parameter], state == "lock")
|
||||
elif parameter == "all" and state == "lock":
|
||||
try:
|
||||
await app.set_chat_permissions(chat_id, ChatPermissions(all_perms=True))
|
||||
await app.set_chat_permissions(chat_id, ChatPermissions(all_perms=False))
|
||||
await message.reply_text(f"Locked Everything in {message.chat.title}")
|
||||
except ChatAdminRequired:
|
||||
await message.reply_msg(
|
||||
|
|
|
|||
Loading…
Reference in a new issue