for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the slince/smartqq package.
*
* (c) Slince <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Slince\SmartQQ\Request;
use Slince\SmartQQ\Credential;
use Slince\SmartQQ\Message\Request\GroupMessage;
class SendGroupMessageRequest extends SendMessageRequest
{
protected $uri = 'http://d1.web2.qq.com/channel/send_qun_msg2';
public function __construct(GroupMessage $message, Credential $credential)
$parameters = array_merge([
'group_uin' => $message->getGroup()->getId(),
], $this->makeMessageParameter($message, $credential));
$this->setParameter('r', \GuzzleHttp\json_encode($parameters));
}