MadelineProto/docs/TD_docs/constructors/location.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00: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}