mmpy_bot icon indicating copy to clipboard operation
mmpy_bot copied to clipboard

Reading previously sent messages

Open lstach opened this issue 1 year ago • 1 comments

Hi all. I've configured my Mattermost bot to read messages when a user in a channel the bot is in sends them. What I am hoping to do is effectively "scrape" a channel to read previous messages that have been sent, rather than just read 1 message at a time as they are sent.

Is there a function in the Mattermost bot that would allow me to do this?

lstach avatar Mar 21 '24 17:03 lstach

Possibly driver.posts.get_posts_for_channel or one of the other ones in the posts API.

unode avatar Mar 21 '24 20:03 unode