DaggieBlanqx / whatsappcloudapi_wrapper

An easy way to build Whatsapp Chatbots on top of the new Whatsapp Cloud API
128 stars 66 forks source link

How do I insert a button url into a message? #13

Open GENESIS-PLUS opened 2 years ago

GENESIS-PLUS commented 2 years ago

There is one in the facebook documentation, but how to use it here?

               "type": "button",
                "index": "0",
                "sub_type": "url",
                "parameters": [
                    {
                        "type": "text",
                        "text": "1Z999AA10123456784"
                    }
                ]
leobaldoneto commented 1 year ago

These type of interactive message are from templates message, they need to be pre approved by Meta. These are not implemented in this wrapper.

https://developers.facebook.com/docs/whatsapp/api/messages/message-templates/interactive-message-templates/