Skip to content

Api List

api 详细说明

onebot v11

go-cqhttp

连接方式支持情况

连接方式可用
HTTP 接口调用
HTTP 事件上报
HTTP POST 快速操作
正向WS连接
反向WS连接

Api 支持情况

OneBot V11
功能Api可用备注
获取 bot 账号信息get_login_info
发送消息send_msg
发送群聊消息send_group_msg
发送好友消息send_private_msg不支持临时消息
获取消息详情get_msg
撤回消息delete_msg
点赞send_like支持给群员点赞
获取好友列表get_friend_list
处理好友请求set_friend_add_request
获取群列表get_group_list
获取群信息get_group_info
获取群成员列表get_group_member_list
获取群成员信息get_group_member_info
获取群荣誉信息get_group_honor_info
设置群组专属头衔set_group_special_title
群匿名禁言set_group_anonymous_ban
开关群匿名set_group_anonymous
处理加群请求set_group_add_request
退群set_group_leave
群踢人set_group_kick
群禁言set_group_ban
全群禁言set_group_whole_ban
设置管理员set_group_admin
设置群名片set_group_card
设置群名set_group_name
获取陌生人信息get_stranger_info实际上只能获取群员信息
获取版本信息get_version_info
获取状态get_status
检查能否发送图片can_send_image
检查能否发送语音can_send_record
获取图片详情get_image
获取语音文件get_record
获取文件详情get_file
获取 Cookiesget_cookies
获取 CSRF Tokenget_csrf_token
获取 QQ 相关接口凭证get_credentials
重启 OneBot 实现set_restart
清理缓存clean_cache
Go-CQHTTP Api 支持情况
Api可用
send_forward_msg
send_private_forward_msg
send_group_forward_msg
get_group_msg_history
get_forward_msg
upload_group_file
download_file