This commit is contained in:
RS 2025-12-11 01:32:20 +07:00 committed by GitHub
commit 8422ca878d
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 = { 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 for i in messages.messages
if not isinstance(i, raw.types.MessageEmpty) and i.reply_to and isinstance(i.reply_to, raw.types.MessageReplyStoryHeader) if not isinstance(i, raw.types.MessageEmpty) and i.reply_to and isinstance(i.reply_to, raw.types.MessageReplyStoryHeader)
} }