2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 12:57:52 +00:00

Log UpdateChannelTooLong updates

This commit is contained in:
Dan 2018-07-03 18:29:25 +02:00 committed by GitHub
parent 8bb4fdd67d
commit e414956e71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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