mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-30 09:32:49 +00:00
Ignore PersistentTimestamp errors
This commit is contained in:
parent
5c927d87a3
commit
82bb09c74a
@ -46,7 +46,7 @@ from pyrogram.errors import (
|
||||
VolumeLocNotFound, ChannelPrivate,
|
||||
BadRequest, AuthBytesInvalid,
|
||||
FloodWait, FloodPremiumWait,
|
||||
ChannelInvalid
|
||||
ChannelInvalid, PersistentTimestampInvalid, PersistentTimestampOutdated
|
||||
)
|
||||
from pyrogram.handlers.handler import Handler
|
||||
from pyrogram.methods import Methods
|
||||
@ -650,7 +650,7 @@ class Client(Methods):
|
||||
force=False
|
||||
)
|
||||
)
|
||||
except ChannelPrivate:
|
||||
except (ChannelPrivate, PersistentTimestampOutdated, PersistentTimestampInvalid):
|
||||
pass
|
||||
else:
|
||||
if not isinstance(diff, raw.types.updates.ChannelDifferenceEmpty):
|
||||
@ -727,7 +727,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 New Issue
Block a user