30 lines
406 B
PHP
30 lines
406 B
PHP
<?php
|
|
|
|
namespace Wechat\Work;
|
|
;
|
|
|
|
class Work extends Base
|
|
{
|
|
public function __construct($config)
|
|
{
|
|
parent::__construct($config);
|
|
}
|
|
|
|
/**
|
|
* 消息推送
|
|
* @return Message
|
|
*/
|
|
public function message()
|
|
{
|
|
return new Message($this);
|
|
}
|
|
|
|
/**
|
|
* 群聊接口
|
|
*/
|
|
public function chat($id)
|
|
{
|
|
return new Chat($id, $this);
|
|
}
|
|
|
|
} |