Actions50
- Account Actions
- Group Actions
- Journal Actions
- Queue Actions
- Sending Actions
- Service Actions
- Status Actions
- Receiving Actions
Sending → sendLocation
AI-generatedSummary
Send a location to a specified WhatsApp chat.
Inputs
- chatId (required) — The ID of the chat to which the location will be sent, formatted as 'phoneNumber@c.us'.
- quotedMessageId — The ID of a message to reply to (optional).
- nameLocation — A label for the location, such as 'Office' (optional).
- address — The address of the location to be sent, formatted as a string (optional).
- latitude (required) — The latitude coordinate of the location.
- longitude (required) — The longitude coordinate of the location.
Output shape
no body — success/failure only
Send operation returns success or failure without additional data.
Examples
Example 1: Sending the location of an office
Send a location with necessary details to a specific chat using its ID.