Package com.greenapi.pkg.api.methods
Class GreenApiGroups
java.lang.Object
com.greenapi.pkg.api.methods.GreenApiGroups
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<AddGroupParticipantResp>The method adds a participant to a group chat.org.springframework.http.ResponseEntity<CreateGroupResp>createGroup(CreateGroupReq createGroupReq) The method is aimed for creating a group chat.org.springframework.http.ResponseEntity<GroupData>getGroupData(String groupId) The method gets group chat data.org.springframework.http.ResponseEntity<LeaveGroupResp>leaveGroup(String groupId) The method makes the current account user leave the group chat.org.springframework.http.ResponseEntity<RemoveGroupAdminResp>The method removes a participant from group chat administration rights.org.springframework.http.ResponseEntity<RemoveGroupParticipantResp>The method removes a participant from a group chat.org.springframework.http.ResponseEntity<SetGroupAdminResp>The method sets a group chat participant as an administrator.org.springframework.http.ResponseEntity<SetGroupPictureResp>The method sets a group picture.org.springframework.http.ResponseEntity<ChangeGroupNameResp>The method changes a group chat name.
-
Constructor Details
-
GreenApiGroups
public GreenApiGroups()
-
-
Method Details
-
createGroup
public org.springframework.http.ResponseEntity<CreateGroupResp> createGroup(CreateGroupReq createGroupReq) The method is aimed for creating a group chat. https://greenapi.com/en/docs/api/groups/CreateGroup/ -
updateGroupName
public org.springframework.http.ResponseEntity<ChangeGroupNameResp> updateGroupName(ChangeGroupNameReq dto) The method changes a group chat name. https://greenapi.com/en/docs/api/groups/UpdateGroupName/ -
getGroupData
The method gets group chat data. https://greenapi.com/en/docs/api/groups/GetGroupData/ -
addGroupParticipant
public org.springframework.http.ResponseEntity<AddGroupParticipantResp> addGroupParticipant(ChangeParticipantReq dto) The method adds a participant to a group chat. https://greenapi.com/en/docs/api/groups/AddGroupParticipant/ -
removeGroupParticipant
public org.springframework.http.ResponseEntity<RemoveGroupParticipantResp> removeGroupParticipant(ChangeParticipantReq dto) The method removes a participant from a group chat. https://greenapi.com/en/docs/api/groups/RemoveGroupParticipant/ -
setGroupAdmin
public org.springframework.http.ResponseEntity<SetGroupAdminResp> setGroupAdmin(ChangeParticipantReq dto) The method sets a group chat participant as an administrator. https://greenapi.com/en/docs/api/groups/SetGroupAdmin/ -
removeGroupAdmin
public org.springframework.http.ResponseEntity<RemoveGroupAdminResp> removeGroupAdmin(ChangeParticipantReq dto) The method removes a participant from group chat administration rights. https://greenapi.com/en/docs/api/groups/RemoveAdmin/ -
setGroupPicture
public org.springframework.http.ResponseEntity<SetGroupPictureResp> setGroupPicture(ChangeGroupPictureReq dto) The method sets a group picture. https://greenapi.com/en/docs/api/groups/SetGroupPicture/ -
leaveGroup
The method makes the current account user leave the group chat. https://greenapi.com/en/docs/api/groups/LeaveGroup/
-