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: incoming interactive message #1234

Closed
nbartels opened this issue Jul 3, 2022 · 0 comments
Closed

WABP: incoming interactive message #1234

nbartels opened this issue Jul 3, 2022 · 0 comments
Assignees
Milestone

Comments

@nbartels
Copy link
Contributor

nbartels commented Jul 3, 2022

Interactive: button reply

{
  "object": "whatsapp_business_account",
  "entry": [
    {
      "id": "101809759215303",
      "changes": [
        {
          "value": {
            "messaging_product": "whatsapp",
            "metadata": {
              "display_phone_number": "123456789",
              "phone_number_id": "1063423435420583"
            },
            "contacts": [
              {
                "profile": {
                  "name": "TestUser"
                },
                "wa_id": "491234567890"
              }
            ],
            "messages": [
              {
                "from": "491234567890",
                "id": "wamid.HBgNNDkxNTIwOTgzMzMGDHEVFEJHFCIYFDNBMUNCMzAwRTQ5RDBDRUE4NzJDAA==",
                "timestamp": "1653318440",
                "interactive": {
                    "button_reply": {
                      "id": "unique-button-identifier-here",
                      "title": "button-text",
                    },
                    "type": "button_reply"
                  },
                  "type": "interactive"
              }
            ]
          },
          "field": "messages"
        }
      ]
    }
  ]
}

interactive: list reply

{
  "object": "whatsapp_business_account",
  "entry": [
    {
      "id": "101809759215303",
      "changes": [
        {
          "value": {
            "messaging_product": "whatsapp",
            "metadata": {
              "display_phone_number": "123456789",
              "phone_number_id": "1063423435420583"
            },
            "contacts": [
              {
                "profile": {
                  "name": "TestUser"
                },
                "wa_id": "491234567890"
              }
            ],
            "messages": [
              {
                "from": "491234567890",
                "id": "wamid.HBgNNDkxNTIwOTgzMzMGDHEVFEJHFCIYFDNBMUNCMzAwRTQ5RDBDRUE4NzJDAA==",
                "timestamp": "1653318440",
                "interactive": {
                    "list_reply": {
                      "id": "list_reply_id",
                      "title": "list_reply_title",
                      "description": "list_reply_description"
                    },
                    "type": "list_reply"
                  },
                  "type": "interactive"
              }
            ]
          },
          "field": "messages"
        }
      ]
    }
  ]
}
@nbartels nbartels self-assigned this Jul 3, 2022
@nbartels nbartels added this to the 2022.8.0 milestone Jul 3, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 26, 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