URL = FunctionParameters["Bitrix24_URL"]; ChatID = FunctionParameters["Bitrix24_HookChatID"]; UserID = 10; Result = OPI_Bitrix24.ChangeChatOwner(URL, ChatID, UserID); OPI_TestDataRetrieval.WriteLog(Result, "ChangeChatOwner (wh)", "Bitrix24"); URL = FunctionParameters["Bitrix24_Domain"]; Token = FunctionParameters["Bitrix24_Token"]; ChatID = FunctionParameters["Bitrix24_ChatID"]; Result = OPI_Bitrix24.ChangeChatOwner(URL, ChatID, UserID, Token);