Layer 224
InputMediaGeoLive
Live geolocation
constructor
inputMediaGeoLive#971fa843 flags:# stopped:flags.0?true geo_point:InputGeoPoint heading:flags.2?int period:flags.1?int proximity_notification_radius:flags.3?int = InputMedia;
Parameters
| Name | Type | Description |
|---|---|---|
| Stopped | flags.0?true | Whether sending of the geolocation was stopped |
| GeoPoint | InputGeoPoint | Current geolocation |
| Heading | flags.2?int | For live locations, a direction in which the location moves, in degrees; 1-360. |
| Period | flags.1?int | Validity period of the current location |
| ProximityNotificationRadius | flags.3?int | For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000) |
Returns
InputMediaGogram Example
// Creating InputMediaGeoLive constructor obj := &tg.InputMediaGeoLive{ GeoPoint: &tg.InputGeoPoint{Lat: 40.7128, Long: -74.0060}, // Optional fields: // Stopped: true, // Heading: 42, // Period: 42, // ProximityNotificationRadius: 42, }