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):