public function send($data = [])
    {
        $params = $this->formatMessage($data);

        $this->restoreMessage();

        return $this->httpPostJson(static::API_SEND, $params);
    }
public function send($data = [])
    {
        $params = $this->formatMessage($data);

        $this->restoreMessage();

        return $this->httpPostJson(static::API_SEND, $params);
    }
public function send ( $ data = [ ] ) { $ params = $ this -> formatMessage ( $ data ) ; $ this -> restoreMessage ( ) ; return $ this -> httpPostJson ( static :: API_SEND , $ params ) ; }
Send a template message.

@param $data

@return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string

@throws \EasyWeChat\Kernel\Exceptions\InvalidArgumentException
Send a template message .