Nov 27 2019 02:37 AM
I got the list of chat Id's. I did conversation in MS teams from GET - https://graph.microsoft.com/beta/me/chats/ using graph API (Graph Explorer)
Is there any way to generate chat Id with the help of user Id with whom I never chat yet.
Nov 27 2019 09:22 PM
@Deepak1265 It is not possible to generate a chat id for the chat that never happened. Could you please elaborate more on your scenario what exactly you are trying to achieve?
Nov 27 2019 10:43 PM
I want to chat with a new user. with whom I never chat before
So that I want to send a message by using graph API
POST - https://graph.microsoft.com/beta/USER_ID/chats/CHAT_ID/messages
Request Body - {
"body": {
"content": " message "
}
}
for that, I need a chat Id
Nov 28 2019 03:41 AM
@Deepak1265 Currently there are no API's to send a message to the user personally. You can only send messages in a channel using Graph API.
Nov 29 2019 06:20 AM
We can send a message to the user personally, I already did this using
Aug 24 2020 07:16 AM
@Deepak1265 Can messages be sent to a MS Teams group chat using Graph API?