up
This commit is contained in:
@@ -497,7 +497,10 @@ class WhatsAppService
|
||||
'file' => new CURLFile($filePath, $mimeType),
|
||||
'type' => $mimeType,
|
||||
],
|
||||
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $this->token],
|
||||
CURLOPT_HTTPHEADER => [
|
||||
'Authorization: Bearer ' . $this->token,
|
||||
'Expect:', // deshabilitar 100-Continue: evita errno 55 (Send failure) con Meta
|
||||
],
|
||||
CURLOPT_TIMEOUT => 300,
|
||||
CURLOPT_CONNECTTIMEOUT => 30,
|
||||
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
||||
@@ -624,6 +627,7 @@ class WhatsAppService
|
||||
'-w', '%{http_code}',
|
||||
'-X', 'POST',
|
||||
'-H', 'Authorization: Bearer ' . $this->token,
|
||||
'-H', 'Expect:', // deshabilitar 100-Continue: evita errno 55 con Meta API
|
||||
'-F', 'messaging_product=whatsapp',
|
||||
'-F', 'type=' . $mimeType,
|
||||
'-F', 'file=@' . $filePath . ';type=' . $mimeType,
|
||||
|
||||
Reference in New Issue
Block a user