1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-26 05:37:27 +02:00
Vitaly the Alpaca (bot) a7b091d23e Main build (Jenkins)
2024-09-17 15:57:44 +03:00

18 lines
581 B
Plaintext

Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID2"];
ReplyID = FunctionParameters["VkTeams_MessageID"];
Text = "File caption";
File = FunctionParameters["Audio2"] ; // 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);