Documentation
¶
Overview ¶
Package onebot defines onebot protocol struct and some spec info.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var V11 = &Spec{
Version: 11,
SupportedActions: supportedV11,
}
V11 OneBot V11
View Source
var V12 = &Spec{
Version: 12,
SupportedActions: supportedV12,
}
V12 OneBot V12
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { Status string `json:"status"` // 执行状态,必须是 ok、failed 中的一个 Code int64 `json:"retcode"` // 返回码 Data any `json:"data"` // 响应数据 Message string `json:"message"` // 错误信息 Echo any `json:"echo"` // 动作请求中的 echo 字段值 }
Response 动作响应是 OneBot 实现收到应用端的动作请求并处理完毕后,发回应用端的数据
https://12.onebot.dev/connect/data-protocol/action-response/
Click to show internal directories.
Click to hide internal directories.