mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-01-10 04:18:47 +02:00
18 lines
561 B
Plaintext
18 lines
561 B
Plaintext
Token = "001.3501506236.091...";
|
|
ChatID = "689203963@chat.agent";
|
|
ReplyID = "7419291601358293295";
|
|
Text = "File caption";
|
|
|
|
File = "https://openyellow.neocities.org/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);
|