From e397c4d1819e1fe05a73123f8e022c2d53211bec Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 26 Mar 2018 13:34:54 +0200 Subject: [PATCH] Don't process empty differences --- pyrogram/client/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index f8bc4e4d..89bab694 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -651,8 +651,9 @@ class Client: ) ) - updates.users += diff.users - updates.chats += diff.chats + if not isinstance(diff, types.updates.ChannelDifferenceEmpty): + updates.users += diff.users + updates.chats += diff.chats if channel_id and pts: if channel_id not in self.channels_pts: