From 4526a644dd0c9d9115bc28a8e30127f640fdfcca Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 23 Apr 2020 13:02:55 +0200 Subject: [PATCH] Fix scheduled forward messages not being parsed correctly --- pyrogram/client/methods/messages/forward_messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/methods/messages/forward_messages.py b/pyrogram/client/methods/messages/forward_messages.py index 0a160857..1e2b1702 100644 --- a/pyrogram/client/methods/messages/forward_messages.py +++ b/pyrogram/client/methods/messages/forward_messages.py @@ -126,7 +126,7 @@ class ForwardMessages(BaseClient): chats = {i.id: i for i in r.chats} for i in r.updates: - if isinstance(i, (types.UpdateNewMessage, types.UpdateNewChannelMessage)): + if isinstance(i, (types.UpdateNewMessage, types.UpdateNewChannelMessage, types.UpdateNewScheduledMessage)): forwarded_messages.append( pyrogram.Message._parse( self, i.message,