Introduction
The meeting chat object is stored in meeting.chat
, which has methods for sending and receiving messages. There are 3 types of messages that can be sent in chat - text messages, images, and files.
The meeting.chat.messages
array contains all the messages that have been sent
in the chat. This is an array of objects, where each object is of type ChatMessage
.
The ChatMessage
class has the following properties:
userId
: UserID of the sender.displayName
: Display name of the sender.read
: Boolean whether the message is read or not.pluginId
: Plugin ID of the message.time
: Time at which the message was sent. It returns aString
in milliseconds since epoch format.type
:MessageType
for type of message being sent (whethertext
,image
orfile
).
There are 3 message classes that extends ChatMessage
, and each has some
extra property in addition to ChatMessage
properties:
TextMessage
ImageMessage
FileMessage
TextMessage:
message
: Text message sent.
ImageMessage:
link
: URL of the image sent.
FileMessage:
name
: Name of the file to be sent.link
: URL of the file sent.size
: Size of the file in bytes.