2025-10-20 19:41:52 +03:00
|
|
|
URL = FunctionParameters["Bitrix24_URL"];
|
|
|
|
|
ChatID = FunctionParameters["Bitrix24_HookChatID"];
|
2025-08-18 16:58:37 +03:00
|
|
|
|
|
|
|
|
OPI_TypeConversion.GetLine(ChatID);
|
|
|
|
|
|
|
|
|
|
ChatString = "chat" + ChatID;
|
|
|
|
|
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";
|
2025-07-06 01:01:25 +03:00
|
|
|
|
|
|
|
|
Attachments = New Array;
|
|
|
|
|
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
|
|
|
|
|
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
|
|
|
|
|
|
2025-08-18 16:58:37 +03:00
|
|
|
Result = OPI_Bitrix24.SendMessage(URL, ChatString, Text, Attachments);
|
2025-07-06 01:01:25 +03:00
|
|
|
|
2025-10-20 19:41:52 +03:00
|
|
|
URL = FunctionParameters["Bitrix24_Domain"];
|
|
|
|
|
Token = FunctionParameters["Bitrix24_Token"];
|
2025-07-06 01:01:25 +03:00
|
|
|
UserID = 10;
|
|
|
|
|
|
|
|
|
|
Result = OPI_Bitrix24.SendMessage(URL, UserID, Text, , Token);
|