Skip to main content
Quick Reference - Message categories and their common types:
The diagram below helps you understand the various message categories and types that a CometChat message can belong to.
As you can see in the above diagram, every message belongs to a particular category. A message can belong to one of the 5 categories:
  1. Message
  2. Custom
  3. Action
  4. Call
  5. Interactive
Each category can be further classified into types.

Message

A message belonging to the category message can be classified into one of the following types:

Custom

In the case of messages that belong to the custom category, there are no predefined types. Custom messages can be used by developers to send messages that do not fit in the default category and types provided by CometChat. For messages with the category custom, the developers can set their own type to uniquely identify the custom message. A good example of a custom message would be sharing location coordinates. In this case, the developer can decide to use the custom message with type set to location.

Interactive

An InteractiveMessage is a specialized object that encapsulates an interactive unit within a chat message, such as an embedded form that users can fill out directly within the chat interface. This enhances user engagement by making the chat experience more interactive and responsive to user input.
To learn more about Interactive messages, please refer to the Interactive Messages guide.

Action

Action messages are system-generated messages. Messages belonging to the action category can further be classified into one of the below types: Action messages hold another property called action which determines the action that has been performed.

groupMember Actions

message Actions

Call

Messages with the category call are calling-related messages. These can belong to either one of the 2 types: The call messages have a property called status that helps you determine the status of the call:

Next Steps

Send Messages

Start sending text, media, and custom messages

Interactive Messages

Build forms, cards, and custom interactive messages

Receive Messages

Listen for and handle incoming messages in real-time

Key Concepts

Review the fundamental building blocks of CometChat