Skip to content

Commit

Permalink
fix getattr
Browse files Browse the repository at this point in the history
Signed-off-by: eyMarv <[email protected]>
  • Loading branch information
eyMarv committed Feb 27, 2024
1 parent 123f6db commit 4b364ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyrogram/types/messages_and_media/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4b364ed

Please sign in to comment.