2024-08-19 08:33:52 +02:00
|
|
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
2024-09-16 14:49:26 +02:00
|
|
|
MessageID = "13100";
|
2024-08-13 16:04:54 +02:00
|
|
|
|
|
|
|
Text = "New message text";
|
|
|
|
|
|
|
|
Result = OPI_Bitrix24.EditMessage(URL, MessageID, Text);
|
|
|
|
|
2024-08-13 16:25:31 +02:00
|
|
|
URL = "b24-ar17wx.bitrix24.by";
|
2024-09-16 14:49:26 +02:00
|
|
|
Token = "8b80e066006e9f06006b12e400000001000...";
|
|
|
|
MessageID = "13102";
|
2024-08-13 16:04:54 +02:00
|
|
|
|
|
|
|
Image = "https://raw.githubusercontent.com/Bayselonarrend/OpenIntegrations/main/service/test_data/picture.jpg";
|
|
|
|
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
|
|
|
|
|
|
|
Attachments = New Array;
|
|
|
|
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
|
|
|
|
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
|
|
|
|
|
|
|
|
Result = OPI_Bitrix24.EditMessage(URL, MessageID, Text, Attachments, Token);
|