SendMsgToBitrixChatAsync

Parent Previous Next

SendMsgToBitrixChatAsync

Description: the method sends a message to the CRM Bitrix 24 chat

Syntax: SendMsgToBitrixChatAsync(string webhookUrl, string chatId, string messageText, string system = "N")

Return value: string


Example:

if(tester.GetTestResult() == Tester.FAILED)

{

       if (DateTime.Now.Hour >= 9 && DateTime.Now.Hour < 21)

       {

               string result = await tester.SendMsgToBitrixChatAsync("https://bitrix/rest/123/abcd/im.message.add", "chat10", "text");

                            tester.SendMessage("BITRIX result: ", Tester.DEBUG, result);

       }

}

Created with the Personal Edition of HelpNDoc: Free help authoring tool