2024-08-13 17:25:31 +03:00
|
|
|
Token = "001.3501506236.091...";
|
|
|
|
ChatID = "689203963@chat.agent";
|
2024-08-14 15:30:44 +03:00
|
|
|
ReplyID = "7402898905190367422";
|
2024-08-13 14:04:54 +00:00
|
|
|
Text = "File caption";
|
|
|
|
|
2024-08-14 09:06:31 +03:00
|
|
|
File = "https://openintegrations.dev/test_data/song.m4a" ; // URL
|
2024-08-13 14:04:54 +00:00
|
|
|
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, File);
|