Forum Discussion
NextLabs_Tiger
Oct 29, 2019Copper Contributor
block a message in Microsoft Teams
Now we plan to develop a data protection App for Microsoft Teams. One feature is block a message when the message includes someone keyword. Now we can use delegated permission and Teams itself h...
Hilton Giesenow
Brass Contributor
NextLabs_Tiger sure but that's to delete - I want to know how to -modify- a message after it's typed, before it gets posted, like for instance to redact a word.
NextLabs_Tiger
Nov 28, 2019Copper Contributor
Hilton Giesenow I has consult a Teams PM, the office interface is disable in his document.
you can try and test below api that I never test, maybe it can work.
PUT "https://apac.ng.msg.teams.microsoft.com/v1/
users/ME/conversations/{conversation_id}@unq.gbl.spaces/messages/{message_id}"
"{""content"":""your-text"",""messagetype"":""Text"",""contenttype"":""text"",""amsreferences"":[],""clientmessageid"":""the_origin_id"",""imdisplayname"":""the_origin_name"",""properties"":{""importance"":"""",""subject"":null}}"
- 0bs33Apr 03, 2020Copper Contributor
Thanks to share your findings. In order to call above API, how did you impersonate the user? I could see, we have to pass a skypeToken which associate with user, but how can we get it.