GREEN-API for WhatsApp icon

GREEN-API for WhatsApp

Send and receive WhatsApp messages using Green-API.

Sending → sendLocation

AI-generated

Summary

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.

Discussion