message
can be classified into either 1 of the below types:
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 very good example of a custom message would be the sharing of location co-ordinates. In this case, the developer can decide to use the custom message with type set to location
.
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. Messages belonging to the interactive
category can further be classified into one of the below types:
action
category can further be classified into one of the below types:
action
which actually determine the action that has been performed For the type groupMember
the action can be either one of the below:
message
, the action can be either one of the below: