Heybot

Estructura general del mensaje entrante

Estructura general de un mensaje entrante

{
    "timestamp": 10000000,
    "event": "MESSAGE",
    "contact": {
        "phone": 5210000000000,
        "displayName": "Juan Perez"
    },
    "object": {
        "id": "wamid.XBgXNTIxNzc3MjXzOTExNxUCABEYEjA4NEM1MEJGMzMyM0E4N0Y0OQA="
        "type": "text"
    },
    "payload": {
        "body": "¡Hola Heybot! Soy Juan 😃"
    }
}
            

Text Message

Estructura general de un mensaje entrante

{
    "timestamp": 10000000,
    "event": "MESSAGE",
    "contact": {
        "phone": 5210000000000,
        "displayName": "Juan Perez"
    },
    "object": {
        "id": "wamid.XBgXNTIxNzc3MjXzOTExNxUCABEYEjA4NEM1MEJGMzMyM0E4N0Y0OQA="
        "type": "text"
    },
    "payload": {
        "body": "¡Hola Heybot! Soy Juan 😃"
    }
}
            

Image Message

Estructura general de un mensaje entrante

{
    "timestamp": 10000000,
    "event": "MESSAGE",
    "contact": {
        "phone": 5210000000000,
        "displayName": "Juan Perez"
    },
    "object": {
        "id": "wamid.XBgXNTIxNzc3MjXzOTExNxUCABEYEjA4NEM1MEJGMzMyM0E4N0Y0OQA="
        "type": "image"
    },
    "payload": {
        "url": "https://s3.us-east-1.wasabisys.com/heybot/00000-0000-0000-0000-00000000.jpeg",
        "mimeType": "image/jpeg",
        "fileSize": 160897,
        "body": null
    }
}
            

Document Message

Estructura general de un mensaje entrante

{
    "timestamp": 10000000,
    "event": "MESSAGE",
    "contact": {
        "phone": 5210000000000,
        "displayName": "Juan Perez"
    },
    "object": {
        "id": "wamid.XBgXNTIxNzc3MjXzOTExNxUCABEYEjA4NEM1MEJGMzMyM0E4N0Y0OQA="
        "type": "document"
    },
    "payload": {
        "url": "https://s3.us-east-1.wasabisys.com/heybot/00000-0000-0000-0000-00000000.pdf",
        "mimeType": "application/pdf",
        "fileSize": 160897,
        "body": null
    }
}
            

Audio Message

Estructura general de un mensaje entrante

{
    "timestamp": 10000000,
    "event": "MESSAGE",
    "contact": {
        "phone": 5210000000000,
        "displayName": "Juan Perez"
    },
    "object": {
        "id": "wamid.XBgXNTIxNzc3MjXzOTExNxUCABEYEjA4NEM1MEJGMzMyM0E4N0Y0OQA="
        "type": "audio"
    },
    "payload": {
        "url": "https://s3.us-east-1.wasabisys.com/heybot/00000-0000-0000-0000-00000000.mp3",
        "mimeType": "audio/mpeg",
        "fileSize": 4585149,
        "body": null
    }
}
            

Sticker Message

Estructura general de un mensaje entrante

{
    "timestamp": 10000000,
    "event": "MESSAGE",
    "contact": {
        "phone": 5210000000000,
        "displayName": "Juan Perez"
    },
    "object": {
        "id": "wamid.XBgXNTIxNzc3MjXzOTExNxUCABEYEjA4NEM1MEJGMzMyM0E4N0Y0OQA="
        "type": "sticker"
    },
    "payload": {
        "url": "https://s3.us-east-1.wasabisys.com/heybot/00000-0000-0000-0000-00000000.webp",
        "mimeType": "image/webp",
        "fileSize": 48038,
        "body": null
    }
}
            

Interactive List Message

Estructura general de un mensaje entrante

{
    "timestamp": 10000000,
    "event": "MESSAGE",
    "contact": {
        "phone": 5210000000000,
        "displayName": "Juan Perez"
    },
    "object": {
        "id": "wamid.XBgXNTIxNzc3MjXzOTExNxUCABEYEjA4NEM1MEJGMzMyM0E4N0Y0OQA="
        "type": "interactive"
    },
    "payload": {
        "id": "option_1",
        "listReplyTitle": "Section 2",
        "listReplyDescription": "Option 4",
        "type": "listReply"
    }
}
            

Interactive Reply Buttons Message

Estructura general de un mensaje entrante

{
    "timestamp": 10000000,
    "event": "MESSAGE",
    "contact": {
        "phone": 5210000000000,
        "displayName": "Juan Perez"
    },
    "object": {
        "id": "wamid.XBgXNTIxNzc3MjXzOTExNxUCABEYEjA4NEM1MEJGMzMyM0E4N0Y0OQA="
        "type": "interactive"
    },
    "payload": {
        "id": "opcion_1",
        "buttonText": "Opción 1",
        "type": "interactive"
    }
}
            

Location Message

Estructura general de un mensaje entrante

{
    "timestamp": 10000000,
    "event": "MESSAGE",
    "contact": {
        "phone": 5210000000000,
        "displayName": "Juan Perez"
    },
    "object": {
        "id": "wamid.XBgXNTIxNzc3MjXzOTExNxUCABEYEjA4NEM1MEJGMzMyM0E4N0Y0OQA="
        "type": "location"
    },
    "payload": {
        "latitude": 00.000000,
        "longitude": -00.0000000
    }
}
            

Request Location Message

Estructura general de un mensaje entrante

{
    "timestamp": 10000000,
    "event": "MESSAGE",
    "contact": {
        "phone": 5210000000000,
        "displayName": "Juan Perez"
    },
    "object": {
        "id": "wamid.XBgXNTIxNzc3MjXzOTExNxUCABEYEjA4NEM1MEJGMzMyM0E4N0Y0OQA="
        "type": "location"
    },
    "payload": {
        "latitude": 00.000000,
        "longitude": -00.0000000
    }
}