Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/single-product-message' into sin…
Browse files Browse the repository at this point in the history
…gle-product-message

# Conflicts:
#	src/WhatsAppCloudApi.php
#	tests/Integration/WhatsAppCloudApiTest.php
#	tests/Unit/WhatsAppCloudApiTest.php
  • Loading branch information
derrickobedgiu1 committed Aug 6, 2024
2 parents 09e478b + 70a43ac commit b9e671f
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/WhatsAppCloudApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,30 +460,6 @@ public function markMessageAsRead(string $message_id): Response
return $this->client->sendMessage($request);
}

/**
* Sends a reaction to a provided message id.
*
* @param string $to WhatsApp ID or phone number for the person you want to send a message to.
* @param string $message_id The ID of the message to react to.
* @param string $emoji The emoji to use as a reaction.
* @return Response
*
* @throws Response\ResponseException
*/
public function sendReaction(string $to, string $message_id, string $emoji = ''): Response
{
$message = new Message\ReactionMessage($to, $message_id, $emoji);

$request = new Request\MessageRequest\RequestReactionMessage(
$message,
$this->app->accessToken(),
$this->app->fromPhoneNumberId(),
$this->timeout
);

return $this->client->sendMessage($request);
}

/**
* Sends a single product message to a specified recipient.
*
Expand Down

0 comments on commit b9e671f

Please sign in to comment.