mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-02-03 13:22:19 +02:00
17 lines
576 B
Plaintext
17 lines
576 B
Plaintext
Token = "6129457865:AAFyzNYOAFbu...";
|
|
ChatID = "461699897";
|
|
ChannelID = "@testsichee";
|
|
Text = "Строковое значение";
|
|
Audio = "https://openyellow.neocities.org/test_data/song.mp3";
|
|
|
|
AudioPath = GetTempFileName("mp3");
|
|
CopyFile(Audio, AudioPath);
|
|
|
|
AudioDD = New BinaryData(AudioPath);
|
|
|
|
Result = OPI_Telegram.SendAudio(Token, ChatID, Text, Audio);
|
|
|
|
Result = OPI_Telegram.SendAudio(Token, ChannelID, Text, AudioPath);
|
|
|
|
Result = OPI_Telegram.SendAudio(Token, ChannelID, Text, AudioDD);
|