markRead

fun DirectMessages.markRead(    lastReadEventId: Long,     recipientId: Long,     vararg options: Option): ApiRequest

Marks a message as read in the recipient’s Direct Message conversation view with the sender.

Twitter API reference

Receiver

DirectMessages endpoint instance.

Return

EmptyApiAction.

Parameters

lastReadEventId

The message ID of the most recent message to be marked read. All messages before it will be marked read as well.

recipientId

The user ID of the user the message is from.

options

Optional. Custom parameters of this request.