2024-09-21 10:57:02 +03:00
|
|
|
Token = "001.3501506236.091...";
|
|
|
|
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
2024-08-13 14:04:54 +00:00
|
|
|
Text = "File caption";
|
|
|
|
|
2024-10-15 10:07:27 +03:00
|
|
|
File = "https://api.athenaeum.digital/test_data/document.docx"; // URL
|
2024-08-13 14:04:54 +00: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 10:31:39 +03:00
|
|
|
Result = OPI_VKTeams.SendFile(Token, ChatID, FileBD, Text, "ImportantDocument.docx");
|