ZM\Adapters\OneBot11Adapter
getName
public function getName(): string
描述
{@inheritDoc}
返回
getVersion
public function getVersion(): string
描述
{@inheritDoc}
返回
handleIncomingRequest
public function handleIncomingRequest(ZM\Context\ContextInterface $context): void
描述
{@inheritDoc}
参数
| 名称 |
类型 |
描述 |
| context |
ZM\Context\ContextInterface |
|
返回
handleAPIResponse
public function handleAPIResponse(array $data, ContextInterface $context): void
描述
处理 API 响应
参数
| 名称 |
类型 |
描述 |
| data |
array |
数据 |
| context |
ContextInterface |
上下文 |
返回
handleMessageEvent
public function handleMessageEvent(array $data, ContextInterface $context): void
描述
处理消息事件
参数
| 名称 |
类型 |
描述 |
| data |
array |
消息数据 |
| context |
ContextInterface |
上下文 |
返回
handleMetaEvent
public function handleMetaEvent(array $data, ContextInterface $context): void
描述
处理元事件
参数
| 名称 |
类型 |
描述 |
| data |
array |
消息数据 |
| context |
ContextInterface |
上下文 |
返回
handleNoticeEvent
public function handleNoticeEvent(array $data, ContextInterface $context): void
描述
处理通知事件
参数
| 名称 |
类型 |
描述 |
| data |
array |
消息数据 |
| context |
ContextInterface |
上下文 |
返回
handleRequestEvent
public function handleRequestEvent(array $data, ContextInterface $context): void
描述
处理请求事件
参数
| 名称 |
类型 |
描述 |
| data |
array |
消息数据 |
| context |
ContextInterface |
上下文 |
返回
handleBeforeEvent
public function handleBeforeEvent(array $data, string $time): ZM\Event\EventDispatcher
描述
处理前置事件
参数
| 名称 |
类型 |
描述 |
| data |
array |
消息数据 |
| time |
string |
执行时机 |
返回
| 类型 |
描述 |
| ZM\Event\EventDispatcher |
|
handleAfterEvent
public function handleAfterEvent(array $data): ZM\Event\EventDispatcher
描述
处理后置事件
参数
返回
| 类型 |
描述 |
| ZM\Event\EventDispatcher |
|
isAPIResponse
public function isAPIResponse(array $data): bool
描述
判断是否为 API 回调
参数
返回
isEvent
public function isEvent(array $data): bool
描述
判断是否为事件
参数
返回
isMetaEvent
public function isMetaEvent(array $data): bool
描述
判断是否为元事件
参数
返回