Apr 03 2020 10:10 AM
Hi,
We are working on some Teams use case where we need to update the channel message. I have found one of conversation in Teams Developer community and found we can call below API.
https://techcommunity.microsoft.com/t5/teams-developer/block-a-message-in-microsoft-teams/m-p/961372...
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}}"
But in order to call this API, we need user token. Is there any way to get it?
Apr 05 2020 11:11 PM
@0bs33 ,
I am not sure about the skype API endpoint, but in order to update conversation in Ms Teams you can make use of update conversation thread graph API.
Also please have a look into Graph API for conversation thread
Apr 06 2020 01:38 AM
Thanks @subhasish-MSFT, for your reply, but group conversations and teams conversations are different, though it looks similar in API signature. If you query for all thread of a group using GET /groups/{id}/threads/{id}, you won't get the teams channel messages. I have tried it.
Apr 06 2020 04:16 AM
@0bs33 ,
There is a beta graph API to get all messages in a channel.
End Point: /teams/{id}/channels/{id}/messages.
Hope it helps.