TgKit library and website are still in early development!

Location Class

extends Base

Represents a point on the map

Properties

client Client

See the code

heading number

The direction in which user is moving, in degrees; 1-360. For active live locations only.

See the code

horizontalAccuracy number

The radius of uncertainty for the location, measured in meters; 0-1500

See the code

latitude number

Latitude as defined by sender

See the code

livePeriod number

Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.

See the code

longitude number

Longitude as defined by sender

See the code

proximityAlertRadius number

Maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.

See the code