Add back UpdateChannelTooLong check

Removed in the previous commit 2bcedb98.
This commit is contained in:
Lonami Exo 2022-05-23 13:17:12 +02:00
parent 2bcedb9820
commit 5a1b9daf4c

View File

@ -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.