Package com.mikuac.shiro.action
Interface NapCatExtend
- All Known Implementing Classes:
Bot
public interface NapCatExtend
-
Method Summary
Modifier and TypeMethodDescriptiongetFriendMsgHistory(long userId, Long messageSeq, int count, boolean reverseOrder) 获取好友历史消息记录getGroupMsgHistory(long groupId, Long messageSeq, int count, boolean reverseOrder) 获取群聊历史消息记录sendFriendPoke(long userId) sendFriendPoke(long userId, long targetId) sendGroupPoke(long groupId, long userId) setMsgEmojiLike(int msgId, String code, boolean isSet) 设置消息表情回应(贴表情)
-
Method Details
-
getGroupMsgHistory
ActionData<GetMsgListResp> getGroupMsgHistory(long groupId, Long messageSeq, int count, boolean reverseOrder) 获取群聊历史消息记录- Parameters:
groupId- 指定的群聊messageSeq- 指定的消息idcount- 获取的消息条数reverseOrder- 是否反转获取到的消息,false:返回的消息为正序;true:返回的消息为倒序- Returns:
- 返回的消息列表
-
getFriendMsgHistory
ActionData<GetMsgListResp> getFriendMsgHistory(long userId, Long messageSeq, int count, boolean reverseOrder) 获取好友历史消息记录- Parameters:
userId- 指定的好友messageSeq- 指定的消息idcount- 获取的消息条数reverseOrder- 是否反转获取到的消息,false:返回的消息为正序;true:返回的消息为倒序- Returns:
- 返回的消息列表
-
sendGroupPoke
-
sendFriendPoke
-
sendFriendPoke
-
setMsgEmojiLike
设置消息表情回应(贴表情)- Parameters:
msgId- 消息 IDcode- 表情 IDisSet- 添加/取消 回应- Returns:
- result
ActionRaw
-