mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-23 05:26:42 +00:00
Fix pts initialized as -1 not being considered
This commit is contained in:
parent
0b89d9d3f9
commit
424079aa12
@ -133,7 +133,7 @@ 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.
|
||||||
"""
|
"""
|
||||||
state = self.session.get_update_state(0)
|
state = self.session.get_update_state(0)
|
||||||
if not state or not state.pts:
|
if not state or state.pts <= 0:
|
||||||
state = await self(functions.updates.GetStateRequest())
|
state = await self(functions.updates.GetStateRequest())
|
||||||
|
|
||||||
self.session.catching_up = True
|
self.session.catching_up = True
|
||||||
|
Loading…
Reference in New Issue
Block a user