We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f0156c commit 24b4674Copy full SHA for 24b4674
1 file changed
pyrogram/methods/chats/update_chat_notifications.py
@@ -16,7 +16,7 @@
16
# You should have received a copy of the GNU Lesser General Public License
17
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18
19
-import datetime
+from datetime import datetime, timedelta
20
from typing import Union
21
22
import pyrogram
@@ -77,8 +77,8 @@ async def update_chat_notifications(
77
if not mute_until:
78
mute_until = utils.max_datetime() if mute else utils.zero_datetime()
79
80
- if isinstance(mute_until, datetime.timedelta):
81
- mute_until = datetime.datetime.now() + mute_until
+ if isinstance(mute_until, timedelta):
+ mute_until = datetime.now() + mute_until
82
83
r = await self.invoke(
84
raw.functions.account.UpdateNotifySettings(
0 commit comments