Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 561 Bytes

File metadata and controls

19 lines (13 loc) · 561 Bytes
description Automatically generated file. DO NOT MODIFY
// Code snippets are only available for the latest version. Current version is 6.x

GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);

ChatMessage chatMessage = new ChatMessage();
ItemBody body = new ItemBody();
body.setContentType(BodyType.Html);
body.setContent("<codeblock class=\"plaintext\"><code>Hello world</code></codeblock>");
chatMessage.setBody(body);
ChatMessage result = graphClient.chats().byChatId("{chat-id}").messages().post(chatMessage);