-
- All Implemented Interfaces:
public interface Bot
-
-
Method Summary
-
-
Method Detail
-
sendPrivateMsg
ApiData<MessageRespData> sendPrivateMsg(Long userId, String message, Boolean autoEscape)
-
sendGroupMsg
ApiData<MessageRespData> sendGroupMsg(Long groupId, String message, Boolean autoEscape)
-
sendGroupForwardMsg
ApiRawData sendGroupForwardMsg(Long groupId, String messages)
-
sendMsg
ApiData<MessageRespData> sendMsg(EMessageType messageType, Long userId, Long groupId, String message, Boolean autoEscape)
-
deleteMsg
ApiRawData deleteMsg(Integer messageId)
-
getMsg
ApiData<MessageData> getMsg(Integer messageId)
-
getForwardMsg
ApiListData<Message> getForwardMsg(Integer messageId)
-
markMsgAsRead
ApiRawData markMsgAsRead(Integer messageId)
-
setGroupKick
ApiRawData setGroupKick(Long groupId, Long userId, Boolean rejectAddRequest)
-
setGroupBan
ApiRawData setGroupBan(Long groupId, Long userId, Integer duration)
-
setGroupAnonymousBan
ApiRawData setGroupAnonymousBan(Long groupId, Anonymous anonymous, String anonymousFlag, Integer duration)
-
setGroupWholeBan
ApiRawData setGroupWholeBan(Long groupId, Boolean enable)
-
setGroupAdmin
ApiRawData setGroupAdmin(Long groupId, Long userId, Boolean enable)
-
setGroupCard
ApiRawData setGroupCard(Long groupId, Long userId, String card)
-
setGroupName
ApiRawData setGroupName(Long groupId, String groupName)
-
setGroupLeave
ApiRawData setGroupLeave(Long groupId, Boolean isDismiss)
-
setGroupSpecialTitle
ApiRawData setGroupSpecialTitle(Long groupId, Long userId, String specialTitle, Integer duration)
-
sendGroupSign
ApiRawData sendGroupSign(Long groupId)
-
setFriendAddRequest
ApiRawData setFriendAddRequest(String flag, Boolean approve, String remark)
-
getLoginInfo
ApiData<LoginInfoData> getLoginInfo()
-
getQiDianAccountInfo
ApiData<QiDianAccountInfoData> getQiDianAccountInfo()
-
setGroupAddRequest
ApiRawData setGroupAddRequest(String flag, EGroupRequestType subType, Boolean approve, String reason)
-
setQQProfile
ApiRawData setQQProfile(String nickname, String company, String email, String college, String personalNote)
-
getStrangerInfo
ApiData<StrangerInfoData> getStrangerInfo(Long userId, Boolean noCache)
-
getFriendList
ApiListData<FriendInfoData> getFriendList()
-
getUnidirectionalFriendList
ApiData<UnidirectionalFriendInfoData> getUnidirectionalFriendList()
-
deleteFriend
ApiRawData deleteFriend(Long userId)
-
getGroupInfo
ApiData<GroupInfoData> getGroupInfo(Long groupId, Boolean noCache)
-
getGroupList
ApiListData<GroupInfoData> getGroupList()
-
getGroupMemberInfo
ApiData<GroupMemberInfoData> getGroupMemberInfo(Long groupId, Long userId, Boolean noCache)
-
getGroupMemberList
ApiListData<GroupMemberInfoData> getGroupMemberList(Long groupId, Boolean noCache)
-
getGroupHonorInfo
ApiData<GroupHonorInfoData> getGroupHonorInfo(Long groupId, EGroupHonorType type)
-
canSendImage
ApiData<CanDoRespData> canSendImage()
-
canSendRecord
ApiData<CanDoRespData> canSendRecord()
-
getVersionInfo
ApiData<VersionInfoData> getVersionInfo()
-
setRestart
ApiRawData setRestart(Long delay)
-
setGroupPortrait
ApiRawData setGroupPortrait(Long groupId, String file, Integer cache)
设置群头像
- Parameters:
groupId- 群号file- 支持 file:// http:// base64://cache- 通过网络 URL 发送时有效, 1表示使用缓存, 0关闭关闭缓存, 默认 为1
-
ocrImage
ApiData<OCRRespData> ocrImage(String image)
-
getGroupSystemMsg
ApiData<GroupSystemMsgData> getGroupSystemMsg()
-
uploadPrivateFile
ApiRawData uploadPrivateFile(Long userId, String file, String name)
上传私聊文件
只能上传本地文件, 需要上传 http 文件的话请先调用 download_file API下载
- Parameters:
userId- 对方 QQ 号file- 本地文件路径name- 文件名称
-
uploadGroupFile
ApiRawData uploadGroupFile(Long groupId, String file, String name, String folder)
上传群文件
在不提供 folder 参数的情况下默认上传到根目录
只能上传本地文件, 需要上传 http 文件的话请先调用 download_file API下载
- Parameters:
groupId- 群号file- 本地文件路径name- 文件名称folder- 父目录ID
-
getGroupFileSystemInfo
ApiData<GroupFileSystemInfoData> getGroupFileSystemInfo(Long groupId)
获取群文件系统信息
- Parameters:
groupId- 群号
-
getGroupRootFiles
ApiData<GroupFilesData> getGroupRootFiles(Long groupId)
获取群根目录文件列表
- Parameters:
groupId- 群号
-
getGroupFilesByFolder
ApiData<GroupFilesData> getGroupFilesByFolder(Long groupId, String folderId)
获取群子目录文件列表
- Parameters:
groupId- 群号folderId- 文件夹ID 参考 Folder 对象
-
createGroupFileFolder
ApiRawData createGroupFileFolder(Long groupId, String name, String parentId)
创建群文件文件夹
仅能在根目录创建文件夹
- Parameters:
groupId- 群号name- 文件名称parentId- 仅能为 /
-
deleteGroupFolder
ApiRawData deleteGroupFolder(Long groupId, String folderId)
删除群文件文件夹
- Parameters:
groupId- 群号folderId- 文件夹ID 参考 Folder 对象
-
deleteGroupFile
ApiRawData deleteGroupFile(Long groupId, String fileId, Integer busid)
删除群文件
- Parameters:
groupId- 群号fileId- 文件夹ID 参考 File 对象busid- 文件类型 参考 File 对象
-
getGroupFileUrl
ApiData<UrlData> getGroupFileUrl(Long groupId, String fileId, String busid)
获取群文件资源链接
- Parameters:
groupId- 群号fileId- 文件夹ID 参考 File 对象busid- 文件类型 参考 File 对象
-
getStatus
ApiData<StatusData> getStatus()
获取状态
-
getGroupAtAllRemain
ApiData<GroupAtAllRemainRespData> getGroupAtAllRemain(Long groupId)
获取群文件资源链接
- Parameters:
groupId- 群号
-
sendGroupNotice
ApiRawData sendGroupNotice(Long groupId, String content, String image)
发送群公告
- Parameters:
groupId- 群号content- 公告内容image- 图片路径(可选)
-
getGroupNotice
ApiListData<GroupNoticeRespData> getGroupNotice(Long groupId)
获取群公告
- Parameters:
groupId- 群号
-
reloadEventFilter
ApiRawData reloadEventFilter(String file)
重载事件过滤器
- Parameters:
file- 事件过滤器文件
-
downloadFile
ApiData<DownloadFileRespData> downloadFile(String url, Integer threadCount, String headers)
下载文件到缓存目录
- Parameters:
url- 链接地址threadCount- 下载线程数headers- 自定义请求头
-
downloadFile
ApiData<DownloadFileRespData> downloadFile(String url, Integer threadCount, JSONObject headers)
-
downloadFile
ApiData<DownloadFileRespData> downloadFile(String url, Integer threadCount, Map<String, String> headers)
-
downloadFile
ApiData<DownloadFileRespData> downloadFile(String url, Integer threadCount, List<String> headers)
-
getOnlineClients
ApiData<OnlineClientsData> getOnlineClients(Boolean noCache)
获取当前账号在线客户端列表
- Parameters:
noCache- 是否无视缓存
-
getGroupMsgHistory
ApiData<GroupMsgHistoryData> getGroupMsgHistory(Long messageSeq, Long groupId)
获取群消息历史记录
- Parameters:
messageSeq- 起始消息序号, 可通过 get_msg 获得groupId- 群号
-
setEssenceMsg
ApiRawData setEssenceMsg(Integer messageId)
设置精华消息
- Parameters:
messageId- 消息ID
-
deleteEssenceMsg
ApiRawData deleteEssenceMsg(Integer messageId)
移出精华消息
- Parameters:
messageId- 消息ID
-
getEssenceMsgList
ApiListData<EssenceMsgData> getEssenceMsgList(Long groupId)
获取精华消息列表
- Parameters:
groupId- 群号
-
checkUrlSafely
ApiData<UrlSafetyData> checkUrlSafely(Long url)
检查链接安全性
- Parameters:
url- 需要检查的链接
-
getModelShow
ApiListData<ModelShowRespData> getModelShow(String model)
获取在线机型
- Parameters:
model- 机型名称
-
setModelShow
ApiRawData setModelShow(String model, String modelShow)
- Parameters:
model- 机型名称
-
deleteUnidirectionalFriend
ApiRawData deleteUnidirectionalFriend(Long userId)
删除单向好友
- Parameters:
userId- 单向好友QQ号
-
sendPrivateForwardMsg
ApiData<MessageRespData> sendPrivateForwardMsg(Long userId, String messages)
-
getGuildServiceProfile
ApiData<GuildServiceProfileData> getGuildServiceProfile()
-
getGuildList
ApiListData<GuildInfoData> getGuildList()
-
getGuildMetaByGuest
ApiData<GuildMetaByGuildData> getGuildMetaByGuest(String guildId)
-
getGuildChannelList
ApiListData<GuildServiceProfileData> getGuildChannelList(String guildId, Boolean noCache)
-
getGuildMemberList
ApiData<GuildMemberListData> getGuildMemberList(String guildId, String nextToken)
-
getGuildMemberProfile
ApiData<GuildMemberProfileData> getGuildMemberProfile(String guildId, String userId)
-
sendGuildChannelMsg
ApiData<GuildMessageRespData> sendGuildChannelMsg(String guildId, String channelId, String message)
-
getTopicChannelFeeds
ApiData<FeedInfo> getTopicChannelFeeds(String guildId, String channelId)
-
deleteGuildRole
ApiRawData deleteGuildRole(String guildId, String roleId)
-
getGuildMsg
ApiData<GuildMsg> getGuildMsg(String messageId, Boolean noCache)
-
getGuildRoles
ApiListData<GuildRole> getGuildRoles(String guildId)
-
setGuildMemberRole
ApiRawData setGuildMemberRole(String guildId, Boolean set, String roleId, String users)
设置用户在频道中的角色 文档怪怪的 不知道怎么用
-
updateGuildRole
ApiRawData updateGuildRole(String guildId, String roleId, String name, String color)
-
createGuildRole
ApiData<GuildRoleData> createGuildRole(String guildId, String color, String name, List<String> initialUsers)
-
callCustomApi
ApiRawData callCustomApi(IApiRequest apiRequest)
-
getBotSession
abstract WebSocketSession getBotSession()
-
setBotSession
abstract Unit setBotSession(WebSocketSession botSession)
-
getApiHandler
abstract ApiHandler getApiHandler()
-
setApiHandler
abstract Unit setApiHandler(ApiHandler apiHandler)
-
getLog
abstract Logger getLog()
-
-
-
-