Skip to content

Commit 50a2ded

Browse files
committed
Merge branch 'moshe-coh-patch-3' into L160
2 parents 52a5228 + 7c6e678 commit 50a2ded

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyrogram/types/messages_and_media/message.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,8 +824,8 @@ async def _parse(
824824
)
825825

826826
if message.reply_to:
827-
parsed_message.reply_to_message_id = message.reply_to.reply_to_msg_id
828-
parsed_message.reply_to_top_message_id = message.reply_to.reply_to_top_id
827+
parsed_message.reply_to_message_id = message.reply_to.reply_to_msg_id if isinstance(message.reply_to, raw.types.MessageReplyHeader) else message.reply_to.story_id
828+
parsed_message.reply_to_top_message_id = message.reply_to.reply_to_top_id if isinstance(message.reply_to, raw.types.MessageReplyHeader) else None
829829

830830
if replies:
831831
try:

0 commit comments

Comments
 (0)