ignacio-chiazzo/ruby_whatsapp_sdk

Sending a template with a dynamic URL

Closed this issue · 2 comments

I created a template for WhatsApp and the template includes a button that has a dynamic URL, I'm trying to use that template to send a message, but I'm getting an error, I'm not sure what am I doing wrong here. I attached images with my code and the error I'm getting.

CleanShot 2023-12-06 at 13 49 39
CleanShot 2023-12-06 at 13 53 41

Thank you,

I managed to fix it after some investigation by doing the following
CleanShot 2023-12-07 at 15 00 33

Hi, thanks for reporting.

What was the fix? Was adding index: 0?

This could be something we can document AND/OR add an error if the developer doesn't pass the parameters correctly.