URL = FunctionParameters["Bitrix24_URL"]; ChatID = "chat" + FunctionParameters["Bitrix24_HookChatID"]; MessageID = FunctionParameters["Bitrix24_ChatMessageID"]; Result = OPI_Bitrix24.MarkMessageAsReaded(URL, ChatID, MessageID); OPI_TestDataRetrieval.WriteLog(Result, "MarkMessageAsReaded (wh)", "Bitrix24"); URL = FunctionParameters["Bitrix24_Domain"]; Token = FunctionParameters["Bitrix24_Token"]; UserID = 10; MessageID = FunctionParameters["Bitrix24_UserMessageID"]; Result = OPI_Bitrix24.MarkMessageAsReaded(URL, UserID, MessageID, Token);