SOLVED

Post a message to a specific MS Teams Channel using deep link URI

%3CLINGO-SUB%20id%3D%22lingo-sub-1479929%22%20slang%3D%22en-US%22%3EPost%20a%20message%20to%20a%20specific%20MS%20Teams%20Channel%20using%20deep%20link%20URI%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1479929%22%20slang%3D%22en-US%22%3E%3CP%20class%3D%22%22%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EWe%20are%20able%20to%20send%20a%20message%20to%20a%20team%20chat%20using%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CU%3E%3CA%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Ehttps%3A%2F%2Fteams.microsoft.com%2Fl%2Fchat%2F0%2F0%3Fusers%3D%3CUSER1%3E%2C%3CUSER2%3E%2C...%26amp%3BtopicName%3D%3CCHAT%3E%3C%2FCHAT%3E%3C%2FUSER2%3E%3C%2FUSER1%3E%3C%2FA%3E%20name%26gt%3B%26amp%3Bmessage%3D%3CPRECANNED%20text%3D%22%22%3E%3C%2FPRECANNED%3E%3C%2FU%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3EBut%20how%20do%20we%20do%20this%20(Post%20a%20message)%20to%20a%20specific%20Team%20Channel%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22contentStandard%22%3EI%20tried%3C%2FP%3E%3CP%20class%3D%22contentCodeblock%22%3E%3CU%3Emsteams%3A%2F%2Fteams.microsoft.com%2Fl%2Fchannel%2Fchannelid%2FGeneral%3FgroupId%3Dgroupid%26amp%3BtenantId%3Dtenantid%26amp%3Bmessage%3Dhello%3C%2FU%3E%3C%2FP%3E%3CP%3Ebut%20it%20just%20opens%20the%20channel%20in%20MSTeams.%3CBR%20%2F%3E%3CBR%20%2F%3EAny%20help%20would%20be%20greatly%20appreciated.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1479929%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EChat%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1480011%22%20slang%3D%22en-US%22%3ERe%3A%20Post%20a%20message%20to%20a%20specific%20MS%20Teams%20Channel%20using%20deep%20link%20URI%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1480011%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F706257%22%20target%3D%22_blank%22%3E%40Zen_Lang%3C%2FA%3E%26nbsp%3BDeeplink%20to%20send%20messages%20to%20a%20channel%20is%20currently%20not%20available.%20You%20could%20try%20using%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fchannel-post-messages%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3ECreate%20chat%20in%20channel%3C%2FA%3E%20Graph%20API%20to%20send%20messages%20to%20a%20channel.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1480293%22%20slang%3D%22en-US%22%3ERe%3A%20Post%20a%20message%20to%20a%20specific%20MS%20Teams%20Channel%20using%20deep%20link%20URI%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1480293%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F359599%22%20target%3D%22_blank%22%3E%40Gousia_Begum%3C%2FA%3E%26nbsp%3B%2C%20thank%20you.%20I%20was%20looking%20for%20a%20non-Graph%20API%20approach%20but%20looks%20like%20I%20have%20no%20choice%20if%20it%20is%20not%20possible%26nbsp%3B%20using%20deeplinks%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi, 

 

We are able to send a message to a team chat using 

https://teams.microsoft.com/l/chat/0/0?users=<user1>,<user2>,...&topicName=<chat name>&message=<precanned text>

But how do we do this (Post a message) to a specific Team Channel?

 

I tried

msteams://teams.microsoft.com/l/channel/channelid/General?groupId=groupid&tenantId=tenantid&message=hello

but it just opens the channel in MSTeams.

Any help would be greatly appreciated.

Thanks

2 Replies
Best Response confirmed by Zen_Lang (New Contributor)
Solution

@Zen_Lang Deeplink to send messages to a channel is currently not available. You could try using the Create chat in channel Graph API to send messages to a channel.

Hi @Gousia_Begum , thank you. I was looking for a non-Graph API approach but looks like I have no choice if it is not possible  using deeplinks