Forum Discussion
abhikhopade2109
Apr 30, 2020Copper Contributor
Read Teams messages
Hi,
Is there any possibilities to Read Teams messages using C# code? I am tried MSDN Site for this but not being able to find correct information. I would like to extract the message with specific keywords. Is it possible?
I have gone through some blogs they said it can be but dont know how to and where to start?
Regards,
Abhijeet
- John John No if you add those external users to a security group then you cannot share the site using anonymous link because don't have option share a site using anonymous link. anonymous links works only for files and folder.
3 Replies
Sort By
- adamhouckCopper Contributor
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.- abhikhopade2109Copper 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-MSFT
Microsoft
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.