Function egg_mode::direct::mark_read[][src]

pub async fn mark_read(
    id: u64,
    sender: impl Into<UserID>,
    token: &Token
) -> Result<Response<()>, Error>
Expand description

Marks the given message as read in the sender’s interface.

This function sends a read receipt for the given message ID, marking it and all messages before it as read. The Twitter Web Client and other first-party Twitter clients can display an indicator to show the last message that was read. This function can also be used to clear an “unread” indicator in these clients for the message.

Note that while this function accepts any UserID, the underlying Twitter API call only accepts a numeric ID for the sender. If you pass a string Screen Name to this function, a separate user lookup will occur prior to sending the read receipt. To avoid this extra lookup, pass a numeric ID (or the UserID::ID variant of UserID) to this function.