This commit is contained in:
RS 2025-09-13 23:16:11 +00:00 committed by GitHub
commit 97cb4d843e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -134,7 +134,10 @@ async def parse_messages(
}
message_reply_to_story = {
i.id: {'user_id': i.reply_to.user_id, 'story_id': i.reply_to.story_id}
i.id: {
'user_id': getattr(i.reply_to, 'user_id', None),
'story_id': getattr(i.reply_to, 'story_id', None)
}
for i in messages.messages
if not isinstance(i, raw.types.MessageEmpty) and i.reply_to and isinstance(i.reply_to, raw.types.MessageReplyStoryHeader)
}