src/NotifierSmsAfricasTalkingService.php
public function sendMessageById($sendSettings, $messageId) {
        $messageId = (int) $messageId;
        
        if (!isset($this->messages[$messageId])) {
            throw new NotifierEmailException('Trying to send Message by Id, for an Id that is not set');
        }
        
        $recipients = $this->messages[$messageId]['RECIPIENTS'];
        $message    = $this->messages[$messageId]['MESSAGE'];
        $senderName = $this->configuration['SMS_FROM_NAME'];
        
        //AfricasTalkingGatewayException used
        try {
            $this->mailHandler->sendMessage($recipients, $message, $senderName);
        } catch (Exception $ex) {
            die($ex->errorMessage());
        }
    }
public function sendMessageById($sendSettings, $messageId) {
        $messageId = (int) $messageId;
        
        if (!isset($this->messages[$messageId])) {
            throw new NotifierEmailException('Trying to send Message by Id, for an Id that is not set');
        }
        
        $recipients = $this->messages[$messageId]['RECIPIENTS'];
        $message    = $this->messages[$messageId]['MESSAGE'];
        $senderName = $this->configuration['SMS_FROM_NAME'];
        
        //AfricasTalkingGatewayException used
        try {
            $this->mailHandler->sendMessage($recipients, $message, $senderName);
        } catch (Exception $ex) {
            die($ex->errorMessage());
        }
    }
function sendMessageById() - Set message using its id

@param   array $sendSettings - Additional send settings
@param   int   $messageId    - The message Id

@return  boolean