From 4e2d553f353dec25bc807894730b85897408805f Mon Sep 17 00:00:00 2001 From: KurimuzonAkuma Date: Wed, 28 Aug 2024 21:09:38 +0300 Subject: [PATCH] Ignore PersistentTimestamp errors Signed-off-by: wulan17 --- pyrogram/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyrogram/client.py b/pyrogram/client.py index e9e674ea..82c72df6 100644 --- a/pyrogram/client.py +++ b/pyrogram/client.py @@ -45,7 +45,7 @@ from pyrogram.errors import CDNFileHashMismatch from pyrogram.errors import ( SessionPasswordNeeded, VolumeLocNotFound, ChannelPrivate, - BadRequest, ChannelInvalid + BadRequest, ChannelInvalid, PersistentTimestampInvalid, PersistentTimestampOutdated ) from pyrogram.handlers.handler import Handler from pyrogram.methods import Methods @@ -666,7 +666,7 @@ class Client(Methods): force=False ) ) - except ChannelPrivate: + except (ChannelPrivate, PersistentTimestampOutdated, PersistentTimestampInvalid): pass else: if not isinstance(diff, raw.types.updates.ChannelDifferenceEmpty): @@ -742,7 +742,7 @@ class Client(Methods): qts=0 ) ) - except (ChannelPrivate, ChannelInvalid): + except (ChannelPrivate, ChannelInvalid, PersistentTimestampOutdated, PersistentTimestampInvalid): break if isinstance(diff, raw.types.updates.DifferenceEmpty):