Class GreenApiGroups

java.lang.Object
com.greenapi.client.pkg.api.methods.GreenApiGroups

public class GreenApiGroups extends Object
  • 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

      public org.springframework.http.ResponseEntity<GroupData> getGroupData(String groupId)
      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

      public org.springframework.http.ResponseEntity<LeaveGroupResp> leaveGroup(String groupId)
      The method makes the current account user leave the group chat. https://greenapi.com/en/docs/api/groups/LeaveGroup/