Exemple #1
0
        public static async Task SendReply(string AccessToken, string groupid, string channelid, string messageid, string value)
        {
            var httpClient = new HttpClient();
            var apiCaller  = new ProtectedApiCallHelper(httpClient);

            var            url = $"https://graph.microsoft.com/beta/teams/{groupid}/channels/{channelid}/messages/{messageid}/replies";
            createmessages createmailmessagedetails = new createmessages();

            messagebody body = new messagebody();

            body.contentType = "html";
            body.content     = value;

            createmailmessagedetails.body = body;

            string data = JsonConvert.SerializeObject(createmailmessagedetails);

            JObject createmailmessage = await apiCaller.CallPostWebApiAndProcessResultASync(url, AccessToken, data);
        }