> For the complete documentation index, see [llms.txt](https://easeava.gitbook.io/easebaidu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://easeava.gitbook.io/easebaidu/xiong-zhang-hao/template-message.md).

# 模板消息

## 模板消息

获取已添加的模板列表:

```
$bear->template_message->getPrivateTemplates();
```

获取系统模板列表:

```
$bear->template_message->getSysTemplates(string $kw, int $pn = 1, int $ps = 10);
```

添加模板:

```
$bear->template_message->addTemplate(string $id);
```

删除模板

```
$bear->template_message->deletePrivateTemplate(string $template_id);
```

发送模板消息:

```
$bear->template_message->send(array $message);
```
