mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-27 16:45:19 +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:
|
if not mute_until:
|
||||||
mute_until = utils.max_datetime() if mute else utils.zero_datetime()
|
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(
|
r = await self.invoke(
|
||||||
raw.functions.account.UpdateNotifySettings(
|
raw.functions.account.UpdateNotifySettings(
|
||||||
peer=raw.types.InputNotifyPeer(peer=await self.resolve_peer(chat_id)),
|
peer=raw.types.InputNotifyPeer(peer=await self.resolve_peer(chat_id)),
|
||||||
|
Loading…
Reference in New Issue
Block a user