mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-23 23:34:28 +00:00
Remove timedelta in update_chat_notifications
This commit is contained in:
parent
e77a3f56e7
commit
a4cb8b30ab
@ -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)),
|
||||
|
Loading…
Reference in New Issue
Block a user