2024-09-17 14:55:34 +02:00
|
|
|
Token = "001.3501506236.091...";
|
|
|
|
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
2024-08-13 16:04:54 +02:00
|
|
|
Text = "File caption";
|
|
|
|
|
2024-09-17 14:55:34 +02:00
|
|
|
File = "https://openintegrations.dev/test_data/document.docx"; // URL
|
2024-08-13 16:04:54 +02:00
|
|
|
FilePath = GetTempFileName("docx"); // Path
|
|
|
|
|
|
|
|
CopyFile(File, FilePath);
|
|
|
|
|
|
|
|
FileBD = New BinaryData(FilePath); // Binary
|
|
|
|
|
|
|
|
Result = OPI_VKTeams.SendFile(Token, ChatID, File);
|
|
|
|
|
|
|
|
Result = OPI_VKTeams.SendFile(Token, ChatID, FilePath, Text);
|
|
|
|
|
2024-08-17 09:31:39 +02:00
|
|
|
Result = OPI_VKTeams.SendFile(Token, ChatID, FileBD, Text, "ImportantDocument.docx");
|