mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Ignore PersistentTimestamp errors
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
ee8f11e2a0
commit
4e2d553f35
1 changed files with 3 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue