public DisplayUserProfile CreateGroupRobotAccount(string groupID, string userid, string password, string displayname = null, string description = null) { string me = whoami(); MembershipHelper.CheckAdmin(groupID, me); UserProfile robot = new UserProfile(); robot.Userid = userid; robot.DisplayName = displayname; robot.Description = description; robot.FollowingsCount = 0; robot.FollowersCount = 0; robot.MessageCount = 0; robot.IsRobot = true; robot.Password = Utils.MD5Encoding(password); robot.DefaultGroup = groupID; return(new DisplayUserProfile(_groupManager.CreateGroupRobotAccount(groupID, me, robot), 0)); }