From b79bd1ea8346e09225322c60db3ffe5fd25d94b0 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 1 Oct 2018 09:45:32 +0200 Subject: [PATCH] Don't swallow left_chat_member updates Even though they are only relevant for supergroups with <50 members --- pyrogram/client/client.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 8e37cfae..ee40d2bc 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -818,11 +818,11 @@ class Client(Methods, BaseClient): ) ) except ChannelPrivate: - continue - - if not isinstance(diff, types.updates.ChannelDifferenceEmpty): - updates.users += diff.users - updates.chats += diff.chats + pass + else: + 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: