1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-26 05:37:27 +02:00
Vitaly the Alpaca (bot) 7ed0455efe Main build (Jenkins)
2024-10-12 15:46:40 +03:00

17 lines
527 B
Plaintext

Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
ReplyID = "7424860889745984697";
File = "https://api.athenaeum.digital/test_data/song.m4a" ; // URL
FilePath = GetTempFileName("m4a"); // Path
CopyFile(File, FilePath);
FileBD = New BinaryData(FilePath); // Binary
Result = OPI_VKTeams.SendVoice(Token, ChatID, File);
Result = OPI_VKTeams.SendVoice(Token, ChatID, FilePath, ,ReplyID);
Result = OPI_VKTeams.SendVoice(Token, ChatID, FileBD);