SOLVED

Send Message individually using graph API ?

%3CLINGO-SUB%20id%3D%22lingo-sub-1030144%22%20slang%3D%22en-US%22%3ESend%20Message%20individually%20using%20graph%20API%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1030144%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EI%20am%20trying%20to%20send%20message%20individually%20anyone%20help%20me%20how%20to%20I%20send%20message%20using%20graph%20API%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1030144%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGraph%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGraphAPI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1051255%22%20slang%3D%22en-US%22%3ERe%3A%20Send%20Message%20individually%20using%20graph%20API%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1051255%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F468104%22%20target%3D%22_blank%22%3E%40Deepak1265%3C%2FA%3E%26nbsp%3Bso%20do%20you%20want%20to%20send%20a%201%3A1%20message%20or%20post%20a%20chat%20to%20teams%20channel.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20I%20can%20send%20a%201%3A1%20chat%20message%20using%20Graph%20Explorer%2C%20but%20not%20by%20using%20powershell.%3C%2FP%3E%3CP%3EFirst%20you%20need%20to%20know%20the%20chat%20id%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fme%2Fchats%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fme%2Fchats%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20once%20you%20have%20that%20you%20can%20POST%20a%20reply%20to%20that%20chat%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2F%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fchats%2F%3CCHATID%3E%2Fmessages%3C%2FCHATID%3E%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I am trying to send message individually anyone help me how to I send message using graph API

1 Reply
best response confirmed by Deepak1265 (Occasional Contributor)
Solution

@Deepak1265 so do you want to send a 1:1 message or post a chat to teams channel.

 

So I can send a 1:1 chat message using Graph Explorer, but not by using powershell.

First you need to know the chat id

https://graph.microsoft.com/beta/me/chats

 

Then once you have that you can POST a reply to that chat

https://graph.microsoft.com/beta/chats/<chatid>/messages

www.000webhost.com