senMessageGroup function implemented