MadelineProto/docs/TD_docs/constructors/location.md
2017-07-23 16:33:46 +02:00

868 B

title description
location Describes location on Earth

Constructor: location

Back to constructors index

Describes location on Earth

Attributes:

Name Type Required Description
latitude double Yes Latitude of location in degrees as defined by sender
longitude double Yes Longitude of location in degrees as defined by sender

Type: Location

Example:

$location = ['_' => 'location', 'latitude' => double, 'longitude' => double];

PWRTelegram json-encoded version:

{"_": "location", "latitude": double, "longitude": double}

Or, if you're into Lua:

location={_='location', latitude=double, longitude=double}