SOLVED

Send Message individually using graph API ?

Copper 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 (Copper 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

1 best response

Accepted Solutions
best response confirmed by Deepak1265 (Copper 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

View solution in original post