Skip to content

Commit 47c6b8d

Browse files
committed
feat: twilio messagingServiceSid
1 parent b499c3a commit 47c6b8d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Utopia/Messaging/Adapter/SMS/Twilio.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class Twilio extends SMSAdapter
1717
public function __construct(
1818
private string $accountSid,
1919
private string $authToken,
20-
private ?string $from = null
20+
private ?string $from = null,
21+
private ?string $messagingServiceSid = null
2122
) {
2223
}
2324

@@ -48,6 +49,7 @@ protected function process(SMSMessage $message): array
4849
body: [
4950
'Body' => $message->getContent(),
5051
'From' => $this->from ?? $message->getFrom(),
52+
'MessagingServiceSid' => $this->messagingServiceSid ?? null,
5153
'To' => $message->getTo()[0],
5254
],
5355
);

0 commit comments

Comments
 (0)