Button Reply is not working
Closed this issue · 1 comments
HemadriChavada commented
I have tried the new button feature and getting the below error :
Class "Netflie\WhatsAppCloudApi\Message\ButtonReply\Button" not found
Please refer code (Same as provided by you)
$rows = [
new Button('button-1', 'Yes'),
new Button('button-2', 'No'),
new Button('button-3', 'Not Now'),
];
$action = new ButtonAction($rows);
$whatsapp_cloud_api->sendButton(
'',
'Would you like to rate us on Trustpilot?',
$action,
'RATE US', // Optional: Specify a header (type "text")
'Please choose an option' // Optional: Specify a footer
);
HemadriChavada commented
Fixed