Location message is primarily used to send location coordinates to the recipient.
The method to send location message is given as follows:
-
Specify the type = "LOCATION". The body should be in JSON format and include the following properties:
"body": {
"type": "LOCATION",
"location": {
"latitude": 31.51335334777832,
"longitude": 74.3333969116211
},
"markdownText": null,
"additionalDetails": {
"name": "Gaddafi Stadium",
"address": "Hafeez Kardar Road",
"url": null
}
}