feat(client): stop geolive messages

This commit is contained in:
teidesu 2021-05-09 12:03:45 +03:00
parent b845864663
commit 0c9dfa172d
2 changed files with 6 additions and 0 deletions

View file

@ -73,6 +73,7 @@ export async function _normalizeInputMedia(
lat: media.latitude, lat: media.latitude,
long: media.longitude, long: media.longitude,
}, },
stopped: media.stopped,
heading: media.heading, heading: media.heading,
period: media.period, period: media.period,
proximityNotificationRadius: media.proximityNotificationRadius, proximityNotificationRadius: media.proximityNotificationRadius,

View file

@ -264,6 +264,11 @@ export interface InputMediaGeo {
export interface InputMediaGeoLive extends Omit<InputMediaGeo, 'type'> { export interface InputMediaGeoLive extends Omit<InputMediaGeo, 'type'> {
type: 'geo_live' type: 'geo_live'
/**
* Whether sending of the geolocation has stopped
*/
stopped?: boolean
/** /**
* Direction in which the location moves, in degrees (1-360) * Direction in which the location moves, in degrees (1-360)
*/ */