public function sendMessage(
        $to,
        $message,
        $from = null,
        $reportMask = 19,
        $reportUrl = null,
        $charset = null,
        $dataCoding = null,
        $messageClass = -1,
        $autoDetectEncoding = false
    ) {
        $data = [
            'to' => $to,
            'text' => $message,
            'from' => $from,
            'report_mask' => $reportMask,
            'report_url' => $reportUrl,
            'charset' => $charset,
            'data_coding' => $dataCoding,
            'message_class' => $messageClass,
            'auto_detect_encoding' => $autoDetectEncoding ? 1 : 0,
        ];
        return $this->get('message_send', $data);
    }