From 2a114917f10fa5f3356e4e797fdc6b354ea36c9c Mon Sep 17 00:00:00 2001 From: apepenkov <39992738+apepenkov@users.noreply.github.com> Date: Thu, 10 Sep 2020 17:25:44 +0300 Subject: [PATCH] Fix AlbumHack in combination with events.Raw (#1555) --- telethon/client/updates.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telethon/client/updates.py b/telethon/client/updates.py index e609f9ab..de051454 100644 --- a/telethon/client/updates.py +++ b/telethon/client/updates.py @@ -467,6 +467,8 @@ class UpdateMethods: # the name of speed; we don't want to make it worse for all updates # just because albums may need it. for builder, callback in self._event_builders: + if isinstance(builder, events.Raw): + continue if not isinstance(event, builder.Event): continue