1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-13 11:50:53 +02:00

17 lines
527 B
Plaintext
Raw Normal View History

 Token = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
2024-08-13 14:35:37 +03:00
Text = "File caption";
File = "https://openintegrations.dev/test_data/document.docx"; // URL
2024-08-13 14:35:37 +03: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);
Result = OPI_VKTeams.SendFile(Token, ChatID, File, Text, "ImportantDocument.docx");