Skip to content

Commit

Permalink
Add optional sendSingleProduct body
Browse files Browse the repository at this point in the history
  • Loading branch information
derrickobedgiu1 committed Mar 17, 2024
1 parent e3b33f7 commit b4351e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WhatsAppCloudApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public function sendCatalog(string $to, string $body, ?string $footer = '', ?str
return $this->client->sendMessage($request);
}

public function sendSingleProduct(string $to, int $catalog_id, string $product_retailer_id, string $body, ?string $footer = '')
public function sendSingleProduct(string $to, int $catalog_id, string $product_retailer_id, ?string $body = '', ?string $footer = '')
{
$message = new Message\SingleProductMessage($to, $catalog_id, $product_retailer_id, $body, $footer, $this->reply_to);
$request = new Request\MessageRequest\RequestSingleProductMessage(
Expand Down

0 comments on commit b4351e7

Please sign in to comment.