diff --git a/src/Utopia/Messaging/Adapter/SMS/Twilio.php b/src/Utopia/Messaging/Adapter/SMS/Twilio.php index f160d32..e515196 100644 --- a/src/Utopia/Messaging/Adapter/SMS/Twilio.php +++ b/src/Utopia/Messaging/Adapter/SMS/Twilio.php @@ -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 ) { } @@ -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], ], );