WAHA

Connect with Whatsapp HTTP API

Actions116

Overview

This node operation sends a geographic location message in a chat session. It is useful for sharing precise locations such as offices, meeting points, or any place of interest directly within a chat conversation. For example, a user can send the location of their office or a meeting spot to a contact or group chat.

Use Case Examples

  1. Sending the office location to a client during a chat conversation.
  2. Sharing a meeting point location with a group chat for an event.

Properties

Name Meaning
Session The chat session identifier to send the location message in.
Chat Id The identifier of the chat where the location will be sent.
Latitude The latitude coordinate of the location to send.
Longitude The longitude coordinate of the location to send.
Title A title or label for the location being sent.
Reply To The ID of the message to reply to, if replying to a specific message.
Request Options Additional options for the request such as batching, SSL handling, proxy, and timeout settings.

Output

JSON

  • messageId - The unique identifier of the sent location message.
  • status - The status of the message sending operation (e.g., success or failure).
  • chatId - The chat identifier where the location was sent.
  • latitude - The latitude coordinate of the sent location.
  • longitude - The longitude coordinate of the sent location.
  • title - The title or label of the sent location.

Dependencies

  • Requires an active chat session and valid chat ID to send location messages.

Troubleshooting

  • Ensure the session and chatId are valid and active; invalid IDs will cause message sending to fail.
  • Latitude and longitude must be valid geographic coordinates; invalid values will cause errors.
  • If using a proxy or ignoring SSL issues, verify network settings to avoid connection failures.
  • Timeout settings should be adjusted based on network speed to prevent premature request abortion.

Discussion