From 4b364edea6fe611ad20ae71ebf5c9abb4634f7d3 Mon Sep 17 00:00:00 2001 From: eyMarv Date: Tue, 27 Feb 2024 22:00:23 +0100 Subject: [PATCH] fix getattr Signed-off-by: eyMarv --- pyrogram/types/messages_and_media/message.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index 8929c1ccf..ef75f4abd 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -1258,9 +1258,7 @@ async def _parse( else: parsed_message.reply_to_story_id = message.reply_to.story_id parsed_message.reply_to_story_user_id = ( - message.reply_to.peer.getattr( - "user_id", message.reply_to.peer.getattr("channel_id", None) - ) + getattr(message.reply_to.peer, "user_id", getattr(message.reply_to.peer, "channel_id", None)) ) if replies: