Skip to main content
Quick Reference for AI Agents & Developers
  • Create group: CometChat.createGroup(group:onSuccess:onError:)
  • Join group: CometChat.joinGroup(GUID:groupType:password:onSuccess:onError:)
  • Leave group: CometChat.leaveGroup(GUID:onSuccess:onError:)
  • List groups: GroupsRequest.GroupsRequestBuilder().build()groupsRequest.fetchNext(onSuccess:onError:)
  • Group types: .public, .private, .password
  • Related: Create Group · Retrieve Groups · Group Members
Groups help your users to converse together in a single space. You can have three types of groups- private, public and password protected. Each group includes three kinds of users- admin, moderator, member.

Group Data Model

The Group class represents a CometChat group with all its properties and settings.

Group Properties

Creating a Group Object

Success Response Example

Group Type Enum

GroupMemberScopeType Enum

Common Error Codes