whatsappcloudapi_wrapper icon indicating copy to clipboard operation
whatsappcloudapi_wrapper copied to clipboard

Radio Buttons action text is hard coded.

Open a4armaan opened this issue 2 years ago • 0 comments

For the Radio Buttons action text is hard coded in index.js at line no 435.

button: 'Select a product',

let samples = {
           messaging_product: 'whatsapp',
           recipient_type: 'individual',
           to: recipientPhone,
           type: 'interactive',
           interactive: {
               type: 'list',
               header: {
                   type: 'text',
                   text: headerText,
               },
               body: {
                   text: bodyText,
               },
               footer: {
                   text: footerText,
               },
               action: {
                   button: 'Select a product',
                   sections: validSections,
               },
           },
       };

But this can be anything. Can you please provide an option to use custom text instead fixed text.

a4armaan avatar Sep 11 '22 15:09 a4armaan