Skip to content

Commit 17508df

Browse files
authored
Update MessageBirdClient.php
Set default datacoding to "auto". This change will allow the API to chose the right datacoding according to the message characters. This setup is more dynamic and allow the best datacoding whatever de language used.
1 parent e9f2bed commit 17508df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/MessagebirdClient.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ public function send(MessagebirdMessage $message)
3535
if (empty($message->recipients)) {
3636
$message->setRecipients(config('services.messagebird.recipients'));
3737
}
38+
if (empty($message->datacoding)) {
39+
$message->setDatacoding('auto');
40+
}
3841

3942
try {
4043
$this->client->request('POST', 'https://rest.messagebird.com/messages', [

0 commit comments

Comments
 (0)