Skip to content

Commit

Permalink
Merge pull request #83 from utopia-php/feat-twilio-messaging-service-sid
Browse files Browse the repository at this point in the history
feat: twilio messagingServiceSid
  • Loading branch information
christyjacob4 authored May 30, 2024
2 parents b499c3a + 47c6b8d commit 6e466d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Utopia/Messaging/Adapter/SMS/Twilio.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class Twilio extends SMSAdapter
public function __construct(
private string $accountSid,
private string $authToken,
private ?string $from = null
private ?string $from = null,
private ?string $messagingServiceSid = null
) {
}

Expand Down Expand Up @@ -48,6 +49,7 @@ protected function process(SMSMessage $message): array
body: [
'Body' => $message->getContent(),
'From' => $this->from ?? $message->getFrom(),
'MessagingServiceSid' => $this->messagingServiceSid ?? null,
'To' => $message->getTo()[0],
],
);
Expand Down

0 comments on commit 6e466d3

Please sign in to comment.