From cc9aeb290a9aa78291c923885ff6b10d29abff48 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 9 May 2018 21:40:24 +0200 Subject: [PATCH] Don't process empty messages --- pyrogram/client/dispatcher/dispatcher.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyrogram/client/dispatcher/dispatcher.py b/pyrogram/client/dispatcher/dispatcher.py index 892a387d..5558a2fd 100644 --- a/pyrogram/client/dispatcher/dispatcher.py +++ b/pyrogram/client/dispatcher/dispatcher.py @@ -138,6 +138,9 @@ class Dispatcher: self.dispatch(update, users=users, chats=chats, is_raw=True) if isinstance(update, Dispatcher.MESSAGE_UPDATES): + if isinstance(update.message, types.MessageEmpty): + continue + message = utils.parse_messages( self.client, update.message,