Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payload from NOWEB engine missing "to" #127

Open
dv336699 opened this issue Jul 5, 2023 · 0 comments
Open

Payload from NOWEB engine missing "to" #127

dv336699 opened this issue Jul 5, 2023 · 0 comments
Labels
engine:NOWEB enhancement New feature or request patron:ADVANCED waha:CORE Relates to WAHA Core version

Comments

@dv336699
Copy link

dv336699 commented Jul 5, 2023

The payload for the message event is missing the to property with the phone number of the instance/session, it works fine for WEBJS.

https://waha.devlike.pro/docs/how-to/webhooks/#message

{
  "event": "message",
  "session": "default", 
  "engine": "WEBJS",
  "payload": {
    "id": "true_11111111111@c.us_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "timestamp": 1667561485,
    "from": "11111111111@c.us",
    ......
    "to": "11111111111@c.us",
    "body": "Hi there!",
    ......

Note that the NOWEB engine is missing the "to" property.

    "event": "message",
    "session": "default",
    "engine": "NOWEB",
    "payload": {
        "id": "true_11111111111@c.us_3EB588F66919A0",
        "timestamp": 1688571746,
        "from": "44777123123@c.us",
        "fromMe": false,
        "body": "Hello",
        "hasMedia": false,
        "_data": {
            "key": {
                "remoteJid": "44777123123@s.whatsapp.net",
                "fromMe": false,
                "id": "3EB588F66919A0"
            },
            "messageTimestamp": 1688571746,

Here is the full webhook data

{
    "event": "message",
    "session": "default",
    "payload": {
        "id": "false_447770123123@c.us_3EB0XXX31355FBXXXXXXX",
        "timestamp": 1688572278,
        "from": "447770123123@c.us",
        "fromMe": false,
        "body": "hello test from noweb",
        "hasMedia": false,
        "_data": {
            "key": {
                "remoteJid": "447770123123@s.whatsapp.net",
                "fromMe": false,
                "id": "3EB0XXX31355FBXXXXXXX"
            },
            "messageTimestamp": 1688572278,
            "pushName": "Some Name",
            "broadcast": false,
            "message": {
                "extendedTextMessage": {
                    "text": "hello test from noweb",
                    "contextInfo": {
                        "ephemeralSettingTimestamp": "1688294982",
                        "disappearingMode": {
                            "initiator": "CHANGED_IN_CHAT"
                        }
                    },
                    "inviteLinkGroupTypeV2": "DEFAULT"
                },
                "messageContextInfo": {
                    "deviceListMetadata": {
                        "senderKeyHash": "pvnwXXXsJsnXXX==",
                        "senderTimestamp": "1688551993",
                        "recipientKeyHash": "XXXQr6sXXX\/7\/g==",
                        "recipientTimestamp": "1688569664"
                    },
                    "deviceListMetadataVersion": 2
                }
            }
        }
    },
    "engine": "NOWEB"
}
@allburov allburov added enhancement New feature or request waha:CORE Relates to WAHA Core version engine:NOWEB labels Jul 6, 2023
@allburov allburov added dependencies Pull requests that update a dependency file and removed dependencies Pull requests that update a dependency file labels Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine:NOWEB enhancement New feature or request patron:ADVANCED waha:CORE Relates to WAHA Core version
Projects
None yet
Development

No branches or pull requests

2 participants