From 424079aa128de691b4f5d4094ef46550de701d65 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Tue, 4 Dec 2018 21:07:18 +0100 Subject: [PATCH] Fix pts initialized as -1 not being considered --- telethon/client/updates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/client/updates.py b/telethon/client/updates.py index 2511a5ca..5bb47b24 100644 --- a/telethon/client/updates.py +++ b/telethon/client/updates.py @@ -133,7 +133,7 @@ class UpdateMethods(UserMethods): This can also be used to forcibly fetch new updates if there are any. """ 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()) self.session.catching_up = True