Skip to main content

Properties and Constraints

This page lists the properties and limits which are applicable to various CometChat systems.

Chat widgets: Properties and Constraints

ItemProperty or ConstraintNotes
Number of Widgets that can be created for an appMaximum 25
Widget nameUTF8mb4, 100 chars, No new line characters
Widget versionv2Cannot be set programatically
Docked layout iconDocked layout icon: PNG,JPG,GIF,SVG

Webhooks: Properties and Constraints

ItemProperty or ConstraintNotes
Maximum number of webhooks in an appMaximum 25
Webhook URLValid URL, maximum 255 characters
Webhook ID50 characters, UTF8mb4 set, alphanumeric (without spaces)
Webhook authentication username50 characters, alphanumeric (without spaces)
Webhook authentication password100 characters, alphanumeric (without spaces)

Management APIs: Properties and Constraints

ItemProperty or ConstraintNotes
App length100 characters, UTF8mb4 set
App versionv3This is the only option available
Number of Collaborators that can be created (team management)Maximum 25

REST APIs: Properties and Constraints

Also see REST API documentation for further information on properties and constraints for each endpoint.

ItemProperty or ConstraintNotes
Number of Bot users that can be createdMaximum 25
API Keys100 characters (UTF8mb4 Characters)This covers all the languages and even emojis. (One emoji uses two characters).
Number of APIs keys that can be created for an appMaximum 25

Users and Groups: Properties and Constraints

ItemProperty or ConstraintNotes
Character limits for UIDs and GUIDs100 characters
Maximum users in a group (v3)100000
Maximum groups a user can be a part ofNo limits
Maximum number of friends for a userNo limits
Maximum tokens for a userNo limits
Maximum number of groupsNo limits
Maximum number of unread messages per userNo limits
Maximum number of users that can be created for an appNo limits
User and Group ID100 characters, alpha-dash (a-z, 0-9 with -and _) without spaces .CometChat forces the UID to all lowercase.
User and Group name100 characters, UTF8mb4 setThis covers all the languages and even emojis.
User and Group avatarMust be a URL, limit of 3000 charactersCometChat doesn’t save the image on its servers.. There is no limit on the image resolution. It depends on the implementation.
User profileMust be a URL, limit of 3000 charactersSame as above
User and Group metadataThe API limit for the POST request length is 10 KB. Hence, the user’s metadata information must fit in the same limit and must not exceed 1.6 KB.
User and Group tagA user can have up to 25 tags with 100 characters per tag. The tags can be in any language. The character set must be UTF8mb4
Group passwordString up to 100 characters
Group description255 characters, UTF8mb4 set
Maximum active presence subscriptionsThe presence subscription will be active until 1000 users are online for a single app. if more than 1000 users go online, the presence notification starting from the 1001st user will not be sent to other users.Note, this is the higher limit applicable across subscription for friends, users with certain roles and all users
Typing indicators for groupsTyping indicator will be sent for a group of up to 1000 online users.
Unread message counts for groupsFor a group with more than 300 members, the conversations and unread message counts are not updated.
Delivery and read receipts for groupsDelivery and read receipts will be sent for for a group of up to 300 online users.

Roles: Properties and Constraints

ItemProperty or ConstraintNotes
Maximum number of Roles that can be createdMaximum 25
Role UID100 characters, alpha-dash (a-z, 0-9 with -and _) without spacesCometChat forces the UID to lowercase.
Role name100 characters, UTF8mb4This covers all the languages and even emojis.
Role description255 characters, UTF8mb4 set, any language.
MetadataNo limit

Messages: Properties and Constraints

ItemProperty or ConstraintNotes
Maximum file attachment size100 MB per message(Includes not just the file size but entire POST body (including chat text and custom data)
Message data (Applicable for API calls)Data is an arbitrary JSON structure. It accepts utf8mb4. It can have any user defined properties. but the below properties have meaning for CometChat: text, attachments, custome_data, metadata.
Note: The attachment size is separate. Here, the attachment is only the attachment properties (such as URL, size, etc.). The size must not exceed 10KB for the data object.
Message tagsA message can have up to 25 tags with 100 characters per tag. The tags can be in any language. The character set must be UTF8mb4.
User and Group conversation tagsA conversation can have up to 25 tags with 100 characters per tag. The tags can be in any language. The character set must be UTF8mb4.
Does CometChat keep soft deleted messages in its database?Yes
Does CometChat keep permanently deleted messages (by API) in its database?No

Calling: Properties and Constraints

ItemProperty or ConstraintNotes
Maximum users in a call50
Default frame rate for video calls30 FPS
Resolution for video callsMaximum - 720p, Minimum - 180pThis depends on the layout selected and the bandwidth available at the user’s end
Media encryption usedSRTP
Audio codec usedOPUS
Video codec usedH.264