Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.heybot.cloud/llms.txt

Use this file to discover all available pages before exploring further.

En esta referencia, se describen los eventos de activación y el contenido de la carga útil del webhook messages de la cuenta de WhatsApp Business para mensajes que contienen información de ubicación.

Cuando ocurre

  • Un usuario de WhatsApp envía un mensaje de ubicación a un negocio.
  • Un usuario de WhatsApp envía una ubicación a un negocio a través de un anuncio de clic a WhatsApp.

Ejemplos

{
  "id": "wamid.HBgLMTY1MDM4Nzk0MzkVAgASGBQzQUQ0N0VFMDA2MTQ0RkJFNkNDNAA=",
  "timestamp": 1750275992,
  "channel": "whatsapp",
  "event": "message",
  "type": "location",
  "location": {
    "address": "<ADDRESS>",
    "latitude": "<LATITUDE>",
    "longitude": "<LONGITUDE>",
    "name": "<LOCATION_NAME | OPTIONAL>",
    "url": "<LOCATION_URL | OPTIONAL>"
  },
  "from": {
    "id": "16505551234",
    "display_name": "Sheena Nelson",
    "phone_number": "16505551234",
    "username": null
  },
  "to": {
    "phone_number": "15550783881",
    "phone_number_id": "106540352242922"
  },
}