Remove timedelta in update_chat_notifications

This commit is contained in:
KurimuzonAkuma 2023-11-29 15:00:51 +03:00
parent e77a3f56e7
commit a4cb8b30ab

View File

@ -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)),