Layer 220
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 PeerLocated constructor
obj := &tg.PeerLocated{
    Peer: &tg.Peer{},
    Expires: 0,
    Distance: 0,
}