1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-01 22:29:52 +02:00
Files
OpenIntegrations/docs/en/examples/Bitrix24/SendMessage.txt

22 lines
852 B
Plaintext
Raw Normal View History

2025-07-06 01:01:25 +03:00
 URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
2025-10-18 23:59:34 +03:00
ChatID = "3268";
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
URL = "b24-ar17wx.bitrix24.by";
2025-10-18 23:59:34 +03:00
Token = "a2a9f368006e9f06006b12e400000001000...";
2025-07-06 01:01:25 +03:00
UserID = 10;
Result = OPI_Bitrix24.SendMessage(URL, UserID, Text, , Token);