2024-08-13 17:25:31 +03:00
|
|
|
Token = "001.3501506236.091...";
|
|
|
|
ChatID = "689203963@chat.agent";
|
2024-09-16 19:32:17 +03:00
|
|
|
ReplyID = "7412922929362503032";
|
2024-08-13 14:04:54 +00:00
|
|
|
Text = "File caption";
|
|
|
|
|
2024-08-19 09:33:52 +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);
|
|
|
|
|
2024-08-17 10:31:39 +03:00
|
|
|
Result = OPI_VKTeams.SendVoice(Token, ChatID, FileBD);
|