diff --git a/pyrogram/types/messages_and_media/story.py b/pyrogram/types/messages_and_media/story.py index 41feb6e4..6f5b5cf0 100644 --- a/pyrogram/types/messages_and_media/story.py +++ b/pyrogram/types/messages_and_media/story.py @@ -192,8 +192,12 @@ class Story(Object, Update): r = await client.invoke(raw.functions.users.GetUsers(id=[raw.types.InputPeerSelf()])) peer_id = r[0].id users.update({i.id: i for i in r}) - elif isinstance(peer, (raw.types.InputPeerUser, raw.types.InputPeerChannel)): + elif isinstance(peer, raw.types.InputPeerUser): peer_id = utils.get_input_peer_id(peer) + elif isinstance(peer, raw.types.InputPeerChannel): + peer_id = utils.get_input_peer_id(peer) + r = await client.invoke(raw.functions.channels.GetChannels(id=[peer])) + chats.update({peer_id: r.chats[0]}) else: peer_id = utils.get_raw_peer_id(peer)