Layer 220
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
Flags # Flags, see TL conditional fields
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

InputMedia

Gogram Example

// Creating InputMediaGeoLive constructor
obj := &tg.InputMediaGeoLive{
    GeoPoint: &tg.InputGeoPoint{Lat: 0.0, Long: 0.0},

    // Optional fields:
    // Stopped: true,
    // Heading: 0,
    // Period: 0,
    // ProximityNotificationRadius: 0,
}