conversations.markAsDelivered()
This method allows you to mark a conversation as delivered when the conversation ID is provided.
Definition
client.conversations.markAsDelivered(conversationId: string|Object,options: ?Object):Promise<Error>
Parameters
Parameter | Type | Description |
---|---|---|
conversationId | string |Object | A string containing a conversation Id or a Conversation object |
options | ?Object | Options (described below) |
Options
Parameter | Type | Description |
---|---|---|
lowestSortNumber | number | Messages with sort number less than or equal to this number should be marked as delivered |
Returns
An error will be thrown if the conversation couldn't be marked as delivered.
Example
await client.conversations.markAsDelivered({conversationId: "some-conversation-id",options: { lowestSortNumber: "any-number" }});