For 1:1 or group chat messages use the Create chatMessage operation which is only supported in beta.
Microsoft Graph API - Messages (Sending Message One to One)
Dear,
In the chat document of Microsoft graph api, it is difficult to understand which http url, method(in java) api and permission are required when sending a one-to-one message to a specific user.
In the case of channels, we have confirmed that methods and APIs for sending messages to a specific team channel are provided.
For example, POST /teams/{id}/channels/{id}/messages or for java, graphClient.teams("id").channels("id").messages().buildRequest().post( chatMessage)
I am wondering if a one-to-one message can be implemented in the same way as within the 1.0 version.
Thank you.
-
Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,456 Reputation points
2020-07-22T07:13:33.627+00:00