List changelogs of messages
Each message changelog has distinct properties such as the timestamp of an updated message or the unique ID of a deleted message. Based on these two properties, you can retrieve message changelogs using either the timestamp or the token. Both the getMessageChangeLogsSinceTimestamp()
and getMessageChangeLogsSinceToken()
methods take a MessageChangeLogsParams
object as an optional parameter that determines which messages to return.
MessageChangeLogsParams
Property name | Type | Description |
---|---|---|
replyType | string | Specifies the type of message to include in the result returned. |
includeThreadInfo | boolean | Determines whether to include message thread information in the result returned. (Default: |
includeParentMessageInfo | boolean | Determines whether to include information about the parent messages in the result returned. (Default: |
includeMetaArray | boolean | Determines whether to include information about meta array in the result returned. (Default: |
includeReactions | boolean | Determines whether to include information about emoji reactions in the result returned. (Default: |
By timestamp
You can retrieve message changelogs by specifying a timestamp. The results include changelogs that were created after the specified timestamp.
List of arguments
Argument name | Type | Description |
---|---|---|
TIMESTAMP | long | Specifies the timestamp to be the reference point for changelogs to retrieve in Unix milliseconds format. |
By token
You can also retrieve message changelogs by specifying a token. The token is an opaque string that marks the starting point of the next page in the result set and it's included in the callback of the previous call. Based on the token, the next page starts with changelogs that were created after the specified token.
List of arguments
Argument name | Type | Description |
---|---|---|
TOKEN | string | Specifies the token to be the reference point for changelogs to retrieve. |