mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-05 03:34:51 +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")
|
await tg_lock(message, permissions, data[parameter], state == "lock")
|
||||||
elif parameter == "all" and state == "lock":
|
elif parameter == "all" and state == "lock":
|
||||||
try:
|
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}")
|
await message.reply_text(f"Locked Everything in {message.chat.title}")
|
||||||
except ChatAdminRequired:
|
except ChatAdminRequired:
|
||||||
await message.reply_msg(
|
await message.reply_msg(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue