feat: add GetGroupMemberList function to actionManager for retrieving group member IDs and initiate websocket communication
This commit is contained in:
@@ -55,3 +55,15 @@ func (am *actionManager) DrawbackMsg(msgId int32) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (am *actionManager) GetGroupMemberList(groupId int64) ([]int64, error) {
|
||||
askGroupMemberListPkg := model.GenGetGroupMemberListPkg(groupId)
|
||||
askGroupMemberListPkgJson, err := json.Marshal(askGroupMemberListPkg)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err = am.botConn.WriteMessage(websocket.TextMessage, askGroupMemberListPkgJson); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, nil //todo
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user