From bce88446ef2d002751ac3e183d0b0bdb4d71aa77 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Fri, 8 Sep 2017 18:43:37 +0200 Subject: [PATCH] Fix incorrect condition causing updates to be ignored --- telethon/update_state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/update_state.py b/telethon/update_state.py index 3ceb87cb..f9303258 100644 --- a/telethon/update_state.py +++ b/telethon/update_state.py @@ -51,7 +51,7 @@ class UpdateState: """Processes an update object. This method is normally called by the library itself. """ - if not self._polling or not self.handlers: + if not self._polling and not self.handlers: return with self._updates_lock: