Layer 224
constructor
peerLocated#ca461b5d peer:Peer expires:int distance:int = PeerLocated;

Parameters

Name Type Description
Peer Peer Peer
Expires int Validity period of current data
Distance int Distance from the peer in meters

Returns

PeerLocated

Gogram Example

// Creating PeerLocatedObj constructor
obj := &tg.PeerLocatedObj{
    Peer: &tg.Peer{},
    Expires: 42,
    Distance: 42,
}