Skip to content

Commit 6e466d3

Browse files
Merge pull request #83 from utopia-php/feat-twilio-messaging-service-sid
feat: twilio messagingServiceSid
2 parents b499c3a + 47c6b8d commit 6e466d3

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)