clairton / unoapi-cloud

Unofficial Whatsapp Cloud Api - Same format as whastapp cloud api, but without spent
GNU General Public License v3.0
143 stars 48 forks source link

Feat(interactive) #25

Closed w3nder closed 2 weeks ago

w3nder commented 8 months ago

Payload example

{
    "messaging_product": "whatsapp",
    "recipient_type": "individual",
    "to": "556484338175",
    "type": "interactive",
    "interactive": {
        "type": "list",
        "header": {
            "type": "text",
            "text": "Title"
        },
        "body": {
            "text": "your-text-message-content"
        },
        "footer": {
            "text": "Cloud UnoApi"
        },
        "action": {
            "button": "sections",
            "sections": [
                {
                    "title": "your-section-title-content",
                    "rows": [
                        {
                            "id": "unique-row-identifier",
                            "title": "row-title-content",
                            "description": "row-description-content"
                        }
                    ]
                },
                {
                    "title": "your-section-title-content",
                    "rows": [
                        {
                            "id": "unique-row-identifier",
                            "title": "row-title-content",
                            "description": "row-description-content"
                        }
                    ]
                }
            ]
        }
    }
}