mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +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 (
|
from pyrogram.errors import (
|
||||||
SessionPasswordNeeded,
|
SessionPasswordNeeded,
|
||||||
VolumeLocNotFound, ChannelPrivate,
|
VolumeLocNotFound, ChannelPrivate,
|
||||||
BadRequest, ChannelInvalid
|
BadRequest, ChannelInvalid, PersistentTimestampInvalid, PersistentTimestampOutdated
|
||||||
)
|
)
|
||||||
from pyrogram.handlers.handler import Handler
|
from pyrogram.handlers.handler import Handler
|
||||||
from pyrogram.methods import Methods
|
from pyrogram.methods import Methods
|
||||||
|
|
@ -666,7 +666,7 @@ class Client(Methods):
|
||||||
force=False
|
force=False
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
except ChannelPrivate:
|
except (ChannelPrivate, PersistentTimestampOutdated, PersistentTimestampInvalid):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
if not isinstance(diff, raw.types.updates.ChannelDifferenceEmpty):
|
if not isinstance(diff, raw.types.updates.ChannelDifferenceEmpty):
|
||||||
|
|
@ -742,7 +742,7 @@ class Client(Methods):
|
||||||
qts=0
|
qts=0
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
except (ChannelPrivate, ChannelInvalid):
|
except (ChannelPrivate, ChannelInvalid, PersistentTimestampOutdated, PersistentTimestampInvalid):
|
||||||
break
|
break
|
||||||
|
|
||||||
if isinstance(diff, raw.types.updates.DifferenceEmpty):
|
if isinstance(diff, raw.types.updates.DifferenceEmpty):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue