Pyrofork: fix topic reopen service messages parser

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2023-09-09 14:13:48 +07:00
parent a45d7cf74a
commit 24dfde46ce
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -647,7 +647,7 @@ class Message(Object, Update):
forum_topic_closed = types.ForumTopicClosed()
service_type = enums.MessageServiceType.FORUM_TOPIC_CLOSED
else:
if hasattr(action, "hidden"):
if hasattr(action, "hidden") and action.hidden is not None:
general_topic_unhidden = types.GeneralTopicUnhidden()
service_type = enums.MessageServiceType.GENERAL_TOPIC_UNHIDDEN
else: