Skip to content

Commit 019df5a

Browse files
committed
(fix): NameError
1 parent 53d30e9 commit 019df5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrogram/types/stories/story_repost_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _parse(
6060
peer_id = utils.get_peer_id(from_user)
6161
if isinstance(from_user, raw.types.PeerUser):
6262
fwd_from_chat = types.Chat._parse_user_chat(client, users.get(peer_id, None))
63-
elif isinstance(story_item.from_id, raw.types.PeerChat):
63+
elif isinstance(from_user, raw.types.PeerChat):
6464
fwd_from_chat = types.Chat._parse_chat_chat(client, chats.get(peer_id, None))
6565
else:
6666
fwd_from_chat = types.Chat._parse_channel_chat(client, chats.get(peer_id, None))

0 commit comments

Comments
 (0)