Skip to content

miniproto.peers.input_peer_from_peer

input_peer_from_peer(peer: Peer) -> object

Convert 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.