public function send($type, $id, $sender, $msgType, $message)
    {
        $content = (new Transformer($msgType, $message))->transform();

        $params = array_merge([
            'receiver' => [
                'type' => $type,
                'id'   => $id,
            ],
            'sender' => $sender,
        ], $content);

        return $this->parseJSON('json', [self::API_SEND, $params]);
    }
public function send($type, $id, $sender, $msgType, $message)
    {
        $content = (new Transformer($msgType, $message))->transform();

        $params = array_merge([
            'receiver' => [
                'type' => $type,
                'id'   => $id,
            ],
            'sender' => $sender,
        ], $content);

        return $this->parseJSON('json', [self::API_SEND, $params]);
    }
public function send ( $ type , $ id , $ sender , $ msgType , $ message ) { $ content = ( new Transformer ( $ msgType , $ message ) ) -> transform ( ) ; $ params = array_merge ( [ 'receiver' => [ 'type' => $ type , 'id' => $ id , ] , 'sender' => $ sender , ] , $ content ) ; return $ this -> parseJSON ( 'json' , [ self :: API_SEND , $ params ] ) ; }
Send chat.

@param string $type
@param string $id
@param string $sender
@param string $msgType
@param mixed  $message

@return \EntWeChat\Support\Collection
Send chat .