From a4cb8b30abee668ee160039704198072955ff883 Mon Sep 17 00:00:00 2001 From: KurimuzonAkuma Date: Wed, 29 Nov 2023 15:00:51 +0300 Subject: [PATCH] Remove timedelta in update_chat_notifications --- pyrogram/methods/chats/update_chat_notifications.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pyrogram/methods/chats/update_chat_notifications.py b/pyrogram/methods/chats/update_chat_notifications.py index 34414ae8..f9e0eafd 100644 --- a/pyrogram/methods/chats/update_chat_notifications.py +++ b/pyrogram/methods/chats/update_chat_notifications.py @@ -77,9 +77,6 @@ class UpdateChatNotifications: if not mute_until: mute_until = utils.max_datetime() if mute else utils.zero_datetime() - if isinstance(mute_until, timedelta): - mute_until = datetime.now() + mute_until - r = await self.invoke( raw.functions.account.UpdateNotifySettings( peer=raw.types.InputNotifyPeer(peer=await self.resolve_peer(chat_id)),