Skip to content

Commit

Permalink
Pyrofork: types: story: fix channel id parser
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <[email protected]>
  • Loading branch information
wulan17 committed Oct 25, 2023
1 parent 59c3e33 commit 3619453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrogram/types/messages_and_media/story.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ async def _parse(
else:
media_type = None
if isinstance(peer, raw.types.PeerChannel):
sender_chat = await client.get_chat(peer.channel_id)
sender_chat = await client.get_chat(utils.get_raw_peer_id(peer.channel_id))
elif isinstance(peer, raw.types.InputPeerSelf):
from_user = client.me
else:
Expand Down

0 comments on commit 3619453

Please sign in to comment.