Chat SDKs JavaScript v4
Chat SDKs JavaScript
Chat SDKs
JavaScript
Version 4
Retrieve a message
Copy link
You can retrieve a specific message in an open or group channel by creating and passing the MessageRetrievalParams object to the getMessage() method as a parameter.
JavaScriptTypeScript
List of parameters
Copy link
| Parameter name | Type | Description |
|---|---|---|
messageId | long | Specifies the unique ID of the message. |
channelType | string | Specifies the type of the channel. |
channelUrl | string | Specifies the URL of the channel. |
Retrieve the last message of a group channel
Copy link
You can retrieve and view the last message sent in a group channel.
JavaScriptTypeScript
Depending on the type of message, cast BaseMessage to UserMessage, FileMessage, or AdminMessage to access the properties you need.
On this page