Skip to content

Commit

Permalink
feat: twilio messagingServiceSid
Browse files Browse the repository at this point in the history
  • Loading branch information
loks0n committed May 30, 2024
1 parent b499c3a commit 47c6b8d
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 47c6b8d

Please sign in to comment.