__construct()
__construct(string $to, string $from, string|null $content = null, string $type = "sms", array|null $msg_media = null)
Create a Message for sending.
Parameters
string | $to | The number of the phone you'd like to receive the message. This must be the full international number without any leading +. |
string | $from | The number from which you'd like to send the message. This must be one of your purchased numbers, in full international format without any leading +. |
string|null | $content | The content of your message encoded using UTF-8. |
string | $type | The type of your message. The default is "sms". |
array|null | $msg_media | An array of media files to send in an MMS message, or null to send an SMS message. The default is null. |