Closed elgibor-solution closed 3 years ago
Hi,
Can help give me example to send buttons?
I found that the wppconnect-server endpoint have "/ api /: session / send-buttons" but when i try to send the button, no message received at the destination number
below are my code
Wppconnect::make($this->url); $response = Wppconnect::to('/api/' . $setting->session . '/send-buttons')->withBody([ 'phone' => $request->phone, 'title' => $request->title, 'buttons' => [ ["buttonId" => '1', "buttonText" => ["displayText" => 'Text of Button 1'], "type" => 1], ["buttonId" => '2', "buttonText" => ["displayText" => 'Text of Button 2'], "type" => 1], ["buttonId" => '3', "buttonText" => ["displayText" => 'Text of Button 3'], "type" => 1] ] ])->withHeaders([ 'Authorization' => 'Bearer ' . $setting->token ])->asJson()->post();
Hi, Yes, but see: https://im.ge/i/oDxTHD and https://wppconnect-team.github.io/wppconnect/classes/Whatsapp.html#sendListMessage
Hi,
Can help give me example to send buttons?
I found that the wppconnect-server endpoint have "/ api /: session / send-buttons" but when i try to send the button, no message received at the destination number
below are my code