Layer 220
constructor
messageMediaGeoLive#b940c666 flags:# geo:GeoPoint heading:flags.0?int period:int proximity_notification_radius:flags.1?int = MessageMedia;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Geo GeoPoint Geolocation
Heading flags.0?int For live locations, a direction in which the location moves, in degrees; 1-360
Period int Validity period of provided geolocation
ProximityNotificationRadius flags.1?int For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000).

Returns

MessageMedia

Gogram Example

// Creating MessageMediaGeoLive constructor
obj := &tg.MessageMediaGeoLive{
    Geo: &tg.GeoPoint{},
    Period: 0,

    // Optional fields:
    // Heading: 0,
    // ProximityNotificationRadius: 0,
}