mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Don't process empty messages
This commit is contained in:
parent
61ba9dca8b
commit
5bf64ac444
@ -634,6 +634,9 @@ class Client:
|
|||||||
pts_count = getattr(update, "pts_count", None)
|
pts_count = getattr(update, "pts_count", None)
|
||||||
|
|
||||||
if isinstance(update, types.UpdateNewChannelMessage):
|
if isinstance(update, types.UpdateNewChannelMessage):
|
||||||
|
message = update.message
|
||||||
|
|
||||||
|
if not isinstance(message, types.MessageEmpty):
|
||||||
diff = self.send(
|
diff = self.send(
|
||||||
functions.updates.GetChannelDifference(
|
functions.updates.GetChannelDifference(
|
||||||
channel=self.resolve_peer(update.message.to_id.channel_id),
|
channel=self.resolve_peer(update.message.to_id.channel_id),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user