From 5a1b9daf4c31174ba3b4719261c4d556c49c41c3 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Mon, 23 May 2022 13:17:12 +0200 Subject: [PATCH] Add back UpdateChannelTooLong check Removed in the previous commit 2bcedb98. --- telethon/_updates/messagebox.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/telethon/_updates/messagebox.py b/telethon/_updates/messagebox.py index d9b7c19d..2e4fed91 100644 --- a/telethon/_updates/messagebox.py +++ b/telethon/_updates/messagebox.py @@ -439,6 +439,11 @@ class MessageBox: *, reset_deadline, ): + # This update means we need to call getChannelDifference to get the updates from the channel + if isinstance(update, tl.UpdateChannelTooLong): + self.begin_get_diff(u.channel_id) + return None + pts = PtsInfo.from_update(update) if not pts: # No pts means that the update can be applied in any order.