GetBot
约 156 字小于 1 分钟
2025-10-13
Karin API Docs / GetBot
类型别名: GetBot()
GetBot = {(
index
):AdapterType
\<any
\> |null
; (protocol
,isProtocol
):AdapterType
<any
> |null
; (botID
):AdapterType
<any
> |null
; }
定义于: packages/core/src/service/bot.ts:15
调用签名
(
index
):AdapterType
<any
> |null
获取指定Bot类
参数
index
number
适配器索引
返回
AdapterType
<any
> | null
调用签名
(
protocol
,isProtocol
):AdapterType
<any
> |null
获取指定Bot类
参数
protocol
适配器协议实现
isProtocol
boolean
此项是为了区分传入的是BotID还是协议实现
返回
AdapterType
<any
> | null
调用签名
(
botID
):AdapterType
<any
> |null
获取指定Bot类
参数
botID
string
机器人ID
返回
AdapterType
<any
> | null