Link Search Menu Expand Document

Constructor: inputMediaGeoLive

Back to constructors index

Live geolocation

Attributes:

NameTypeRequiredDescription
stoppedBoolOptionalWhether sending of the geolocation was stopped
geo_pointInputGeoPointOptionalCurrent geolocation
headingintOptionalFor live locations, a direction in which the location moves, in degrees; 1-360.
periodintOptionalValidity period of the current location
proximity_notification_radiusintOptionalFor live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)

Type: InputMedia

Example:

$inputMediaGeoLive = ['_' => 'inputMediaGeoLive', 'stopped' => Bool, 'geo_point' => InputGeoPoint, 'heading' => int, 'period' => int, 'proximity_notification_radius' => int];