Link Search Menu Expand Document

Constructor: messageMediaGeoLive

Back to constructors index

Indicates a live geolocation

Attributes:

NameTypeRequiredDescription
geoGeoPointOptionalGeolocation
headingintOptionalFor live locations, a direction in which the location moves, in degrees; 1-360
periodintYesValidity period of provided geolocation
proximity_notification_radiusintOptionalFor live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000).

Type: MessageMedia

Example:

$messageMediaGeoLive = ['_' => 'messageMediaGeoLive', 'geo' => GeoPoint, 'heading' => int, 'period' => int, 'proximity_notification_radius' => int];