MissKaty: Sync nightmode to pyrofork v2.3.8.post1

Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
Yasir Aris M 2023-10-13 06:45:40 +07:00 committed by GitHub
parent 6f02488e88
commit 60cb33dda7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,7 +148,7 @@ async def mute_chat(chat_id: int):
getlang = await get_db_lang(chat_id)
getlang = getlang or "en-US"
try:
await app.set_chat_permissions(chat_id, ChatPermissions())
await app.set_chat_permissions(chat_id, ChatPermissions(all_perms=False))
except ChatAdminRequired:
await app.send_message(
LOG_CHANNEL,