Remove any reference with timedelta

This commit is contained in:
CyanBook 2020-11-01 14:44:40 +01:00 committed by Dan
parent 024f89d3fa
commit 6ad4272c5c

View File

@ -25,7 +25,7 @@ class UpdateChatNotifications(Scaffold):
silent (``bool``, *optional*):
If the chat shall be muted.
mute_until (``int`` | ``datetime.datetime`` | ``datetime.timdelta``, *optional*):
mute_until (``int``, *optional*):
When notifications shall be switched off. Unix time.
Default to forever.
@ -39,12 +39,12 @@ class UpdateChatNotifications(Scaffold):
app.update_chat_notifications(chat_id, silent=True)
# Mute a chat for 10 minutes
from datetime import timedelta
from time import time
app.update_chat_notifications(
chat_id,
silent=True
mute_until=timedelta(minutes=10)
silent=True,
mute_until=time() + 600
)
# Unmute a chat