From e414956e71d9a40f79483353a9978e3dbddcc401 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 3 Jul 2018 18:29:25 +0200 Subject: [PATCH] Log UpdateChannelTooLong updates --- pyrogram/client/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index ba584aed..92666ce5 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -777,6 +777,9 @@ class Client(Methods, BaseClient): pts = getattr(update, "pts", None) pts_count = getattr(update, "pts_count", None) + + if isinstance(update, types.UpdateChannelTooLong): + log.warning(update) if isinstance(update, types.UpdateNewChannelMessage): message = update.message