v1

latestOpenAPI 3.0.02026-07-14181255304.7 KB
Messages

๐Ÿ“ Send location message

Method responsible for sending a fixed location to your contacts, it is mostly used to send an addressโ€™s location

post/messages/location

Request body

tostring required

Use the phone number or Chat ID of the contact/group/channel to which you want to send the message. Use Get groups to get the group ID.

quotedstring

Message ID of the message to be quoted

editstring

Message ID of the message to be edited

latitudenumber double required

Latitude of location being sent

longitudenumber double required

Longitude of location being sent

addressstring

Address of the location

namestring

Name of the location

urlstring

URL for the website where the user downloaded the location information

previewstring

Optional. Base64 encoded preview of the media. In JPEG format.

accuracyinteger

Accuracy of the location in meters

speedinteger

Speed of the location in meters per second

degreesinteger

Degrees clockwise from true north

commentstring

Optional. Comment for the location

view_onceboolean

Is view once

Example request

{
  "to": "1234567891@s.whatsapp.net"
}

Response

Created

sentboolean required

Message sent