Forum Discussion
Read Teams messages
- May 04, 2020
abhikhopade2109 , As mentioned already. You can make use of beta version List channel messages graph API. you can filter out the result based on time for your requirement.
You could look at these API's, they are protected, but you can list the messages in a channel https://docs.microsoft.com/en-us/graph/api/channel-list-messages?view=graph-rest-beta&tabs=http
I don't believe there is a way to get a stream of the messages sent to your service as they occur. If you want the users to specify which messages to send you, you can create a bot and when they mention the bot, the message will automatically get sent to your service.
- abhikhopade2109May 01, 2020Copper Contributor
Hi adamhouck
Thanks a lot for your response.
I dont want to read the stream of messages, but say after office hours I just want to scan through all the messages of the day, including its attachments too. Is it possible?
I am trying to look at the blogs and other sources but couldn't be a help.
- subhasish-MSFTMay 04, 2020Former Employee
abhikhopade2109 , As mentioned already. You can make use of beta version List channel messages graph API. you can filter out the result based on time for your requirement.