Gábor Csikós
Gábor Csikós

Reputation: 2917

How to determine if a message is read in Slack using simple-slack-api

I'm using the simple-slack.api to send and receive Slack messages. Is there a way to decide if a message was read?

I found that I can get the history of a channel, but the SlackMessagePosted does not contain any field if the message was read or not (the MessageSubType does not include it)

Upvotes: 2

Views: 3333

Answers (1)

Erik Kalkoken
Erik Kalkoken

Reputation: 32698

Its not possible.

The Slack API (e.g. channels.history or conversations.history) does not provide any information about which messages are unread and by whom.

The only thing you get is the total number of unread messages for your current user as defined by the token you are using (by setting the parameter unreads to true), but I guess that is not what you are looking for.

Upvotes: 2

Related Questions