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,
|
VolumeLocNotFound, ChannelPrivate,
|
||||||
BadRequest, AuthBytesInvalid,
|
BadRequest, AuthBytesInvalid,
|
||||||
FloodWait, FloodPremiumWait,
|
FloodWait, FloodPremiumWait,
|
||||||
ChannelInvalid
|
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
|
||||||
@ -650,7 +650,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):
|
||||||
@ -727,7 +727,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 New Issue
Block a user