Fix scheduled forward messages not being parsed correctly

This commit is contained in:
Dan 2020-04-23 13:02:55 +02:00
parent e42d6acc08
commit 4526a644dd

View File

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