PyroFork: More cleanup

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2023-01-17 20:45:50 +07:00
parent 42a2f04d8e
commit 034a4d6041
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -964,7 +964,7 @@ class Message(Object, Update):
reply_to_message_ids=message.id,
replies=replies - 1
)
if not reply_to_message.forum_topic_created:
if reply_to_message and not reply_to_message.forum_topic_created:
parsed_message.reply_to_message = reply_to_message
except MessageIdsEmpty:
pass