llbot-sdk-core Api接口说明

Fuko 发布于 2025-12-21 86 次阅读


请求接口

工具类为:ApiUtil
静态调用即可

发送私聊消息sendPrivateMsg
发送群消息sendGroupMsg
发送私聊消息 对象形式sendPrivateMsgEx
发送群消息 对象形式sendGroupMsgEx
方法对应
转发单条好友消息forwardFriendSingleMsg
转发单条群消息forwardGroupSingleMsg
获取消息详情getMsg
撤回消息deleteMsg
获取消息文件详情getFile
获取消息图片详情getImage
获取消息语音详情getRecord
表情回应消息setMsgEmojiLike
取消消息表情回应unsetMsgEmojiLike
获取好友历史消息记录getFriendMsgHistory
获取群历史消息getGroupMsgHistory
获取转发消息详情getForwardMsg
标记消息已读markMsgAsRead
语音消息转文字voiceMsgToText
发送群 Ai 语音sendGroupAiRecord
点赞sendLike
好友列表getFriendList
删除好友delete_friend
处理好友申请setFriendAddRequest
设置好友备注setFriendRemark
获取好友或群友信息getStrangerInfo
设置个人头像setQqAvatar
好友戳一戳(双击头像)friendPoke
获取我赞过谁列表getProfileLike
获取谁赞过我列表getProfileLikeMe
移动好友分组setFriendCategory
获取QQ或QQ群头像getQqAvatar
获取被过滤好友请求getDoubtFriendsAddRequest
处理被过滤好友请求setDoubtFriendsAddRequest
设置登录号资料setQqProfile
获取群列表getGroupList
获取群详情getGroupInfo
获取群成员列表getGroupMemberList
获取群成员信息getGroupMemberInfo
群员戳一戳(双击头像)groupPoke
处理加群请求setGroupAddRequest
退群setGroupLeave
设置群管理员setGroupAdmin
设置群名片setGroupCard
设置群禁言setGroupBan
设置群全体禁言setGroupWholeBan
获取被禁言群员列表getGroupShutList
设置群名setGroupName
批量踢出群成员batch_delete_group_member
群踢人setGroupKick
设置群头衔setGroupSpecialTitle
获取群精华消息getEssenceMsgList
设置群精华消息setEssenceMsg
删除群精华消息deleteEssenceMsg
获取群 @全体成员 剩余次数get_group_at_all_remain
发送群公告sendGroupNotice
获取群公告getGroupNotice
删除群公告deleteGroupNotice
群打卡sendGroupSign
设置群消息接收方式setGroupMsgMask
设置群备注setGroupRemark
获取已过滤的加群通知getGroupIgnoreAddRequest
获取群相册列表getGroupAlbumList
创建群相册createGroupAlbum
删除群相册deleteGroupAlbum

示例

发送私聊信息

//该方法需要的参数
//Long user_id 好友qq号
//String msg 发送的消息内容
//向好友123456789发送信息你好
ApiUtil.sendPrivateMsg(12345678L,"你好");

发送群消息

//该方法需要的参数
//Long group_id 群号
//String msg 发送的消息内容
//向群号123456789发送信息你好
ApiUtil.sendGroupMsg(12345678L,"你好");
此作者没有提供个人介绍。
最后更新于 2025-12-21