Skip to content

Do I need a bot to read channel's message? #8140

Closed Answered by nyapat
hilmanski asked this question in Q&A
Discussion options

You must be logged in to vote

I think you could read messages on behalf of a user but I think that's a mild security concern (afaik that'd allow the app to read messages anywhere, I wouldn't auth that only happens with local rpc server access). I'm not sure what exactly a "channel reader" will do because you can just read the channel in the app but it does seem like you might want a bot.

You can get messages by requesting channels/:id/messages with a limit of 100 via rest (i.e. rest.get(api route, opts)), or in d.js by just executing channel.messages.fetch

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hilmanski
Comment options

@nyapat
Comment options

@advaith1
Comment options

Answer selected by hilmanski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants