Skip to content

Commit e397c4d

Browse files
committed
Don't process empty differences
1 parent 42a2878 commit e397c4d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pyrogram/client/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,9 @@ def updates_worker(self):
651651
)
652652
)
653653

654-
updates.users += diff.users
655-
updates.chats += diff.chats
654+
if not isinstance(diff, types.updates.ChannelDifferenceEmpty):
655+
updates.users += diff.users
656+
updates.chats += diff.chats
656657

657658
if channel_id and pts:
658659
if channel_id not in self.channels_pts:

0 commit comments

Comments
 (0)