2024-08-13 18:25:14 +02:00
|
|
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2pp...";
|
2024-08-13 16:25:31 +02:00
|
|
|
ChatID = "chat" + "450";
|
2024-08-13 16:04:54 +02:00
|
|
|
Text = "Message text";
|
|
|
|
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.SendMessage(URL, ChatID, Text, Attachments);
|
|
|
|
|
2024-08-13 16:25:31 +02:00
|
|
|
URL = "b24-ar17wx.bitrix24.by";
|
|
|
|
Token = "fe3fa966006e9f06006b12e400000001000...";
|
2024-08-13 16:04:54 +02:00
|
|
|
UserID = 10;
|
|
|
|
|
|
|
|
Result = OPI_Bitrix24.SendMessage(URL, UserID, Text, , Token);
|