Button Reply is not working #166
Closed
HemadriChavada
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
);
Beta Was this translation helpful? Give feedback.
All reactions