mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-18 11:06:39 +00:00
Fix catch-up when no pts is known
This commit is contained in:
parent
d92d989569
commit
cfd6d3ce04
@ -154,6 +154,9 @@ class UpdateMethods(UserMethods):
|
|||||||
This can also be used to forcibly fetch new updates if there are any.
|
This can also be used to forcibly fetch new updates if there are any.
|
||||||
"""
|
"""
|
||||||
pts, date = self._state_cache[None]
|
pts, date = self._state_cache[None]
|
||||||
|
if not pts:
|
||||||
|
return
|
||||||
|
|
||||||
self.session.catching_up = True
|
self.session.catching_up = True
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
|
Loading…
Reference in New Issue
Block a user