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

WABP: Support incoming text message in webhook #1215

Closed
nbartels opened this issue May 23, 2022 · 0 comments
Closed

WABP: Support incoming text message in webhook #1215

nbartels opened this issue May 23, 2022 · 0 comments
Assignees
Milestone

Comments

@nbartels
Copy link
Contributor

nbartels commented May 23, 2022

Receiving a incoming whatapp text message can trigger the webhook. Our mapper needs to be able to map the incoming json to a good object structure.

Example json:

{
  "object": "whatsapp_business_account",
  "entry": [
    {
      "id": "101809759215303",
      "changes": [
        {
          "value": {
            "messaging_product": "whatsapp",
            "metadata": {
              "display_phone_number": "1234567891",
              "phone_number_id": "10634295353625"
            },
            "contacts": [
              {
                "profile": {
                  "name": "TestUser"
                },
                "wa_id": "491234567890"
              }
            ],
            "messages": [
              {
                "from": "491234567890",
                "id": "wamid.HBgNNDkxNTIwOTgzMzM5OBUCABIYHGDEHJVFHJEVCFHJEVBCMTkyODk1OEIyAA==",
                "timestamp": "1653253313",
                "text": {
                  "body": "Test"
                },
                "type": "text"
              }
            ]
          },
          "field": "messages"
        }
      ]
    }
  ]
}
@nbartels nbartels self-assigned this May 23, 2022
@nbartels nbartels added this to the 2022.6.0 milestone May 23, 2022
@nbartels nbartels modified the milestones: 2022.6.0, 2022.7.0, 2022.8.0 May 31, 2022
nbartels added a commit that referenced this issue Jul 3, 2022
@nbartels nbartels closed this as completed Jul 3, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant