Skip to content

miniproto.types.Peer

Peer(id: int, kind: PeerKind, access_hash: int | None = None) -> None

Telegram peer reference suitable for high-level client operations.

Attributes:

  • id (int) – Telegram peer identifier.
  • kind (PeerKind) – Peer category: user, chat, channel, or the current account.
  • access_hash (int | None) – Optional Telegram access hash required for some peers.