Link Search Menu Expand Document

Constructor: messageActionGeoProximityReached

Back to constructors index

A user of the chat is now in proximity of another user

Attributes:

NameTypeRequiredDescription
from_idPeerYesThe user or chat that is now in proximity of to_id
to_idPeerYesThe user or chat that subscribed to live geolocation proximity alerts
distanceintYesDistance, in meters (0-100000)

Type: MessageAction

Example:

$messageActionGeoProximityReached = ['_' => 'messageActionGeoProximityReached', 'from_id' => Peer, 'to_id' => Peer, 'distance' => int];