1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-04 10:34:52 +02:00
OpenIntegrations/docs/en/examples/VKTeams/SendVoice.txt

18 lines
538 B
Plaintext
Raw Normal View History

 Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
ReplyID = "7402287649739767956";
2024-08-13 13:35:37 +02:00
Text = "File caption";
File = "https://openintegrations.dev/test_data/song.m4a" ; // URL
2024-08-13 13:35:37 +02: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);