From 47c6b8d7d374a479e9ce7d9e971e194729bd2f2a Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Thu, 30 May 2024 13:22:31 +0100 Subject: [PATCH] feat: twilio messagingServiceSid --- src/Utopia/Messaging/Adapter/SMS/Twilio.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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], ], );