From 8bb4fdd67d36527739b9815a52c0df22971708a1 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 2 Jul 2018 20:48:58 +0200 Subject: [PATCH 1/2] Update to v0.7.6dev1 --- pyrogram/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index 16204830..b93b57b1 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -23,7 +23,7 @@ __copyright__ = "Copyright (C) 2017-2018 Dan Tès Date: Tue, 3 Jul 2018 18:29:25 +0200 Subject: [PATCH 2/2] 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