miniproto.peers.input_peer_from_peer
miniproto.peers.input_peer_from_peer
Section titled “miniproto.peers.input_peer_from_peer”input_peer_from_peer(peer: Peer) -> objectConvert a resolved peer to its MTProto InputPeer representation.
Chats need no hash; users and channels must carry a cached access hash.
Raises:
NotFound– If the peer kind is unsupported or its required hash is absent.
Parameters:
- peer (
Peer) – Resolved public peer to convert.