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 the following two properties, you can retrieve message changelogs using either the timestamp or the token. Both the getMessageChangeLogs(timestamp:params:completionHandler:)
and getMessageChangeLogs(token:params:completionHandler:
methods require a MessageChangeLogsParams
object to determine what messages to return.
MessageChangeLogsParams
Property name | Type | Description |
---|---|---|
replyType | Specifies the type of message to include in the results. | |
includeThreadInfo | Bool | Determines whether to include the thread information of the messages in the result. (Default: |
includeParentMessageInfo | Bool | Determines whether to include the information of the parent message in the result. (Default: |
By timestamp
You can retrieve message changelogs by specifying a timestamp. The results will only include changelogs that were created after the specified timestamp.
List of parameters
Parameter name | Type | Description |
---|---|---|
timestamp | Int64 | Specifies the timestamp to be the reference point for retrieving changelogs in Unix milliseconds format. |
params | Contains a set of parameters you can use when retrieving changelogs. |
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 will start with changelogs that were created after the specified token.
List of parameters
Parameter name | Type | Description |
---|---|---|
token | string | Specifies the token to be the reference point for retrieving changelogs. |
params | Contains a set of parameters you can use when retrieving changelogs. |