mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-25 21:39:21 +02:00
21 lines
721 B
Plaintext
21 lines
721 B
Plaintext
Token = FunctionParameters["Telegram_Token"];
|
|
ChatID = FunctionParameters["Telegram_ChatID"];
|
|
ChannelID = FunctionParameters["Telegram_ChannelID"];
|
|
Text = FunctionParameters["String"];
|
|
Video = FunctionParameters["Video"];
|
|
|
|
VideoPath = GetTempFileName("mp4");
|
|
CopyFile(Video, VideoPath);
|
|
|
|
VideoDD = New BinaryData(VideoPath);
|
|
|
|
Result = OPI_Telegram.SendVideo(Token, ChatID, Text, Video);
|
|
|
|
OPI_TestDataRetrieval.WriteLog(Result, "SendVideo", "Telegram");
|
|
|
|
Result = OPI_Telegram.SendVideo(Token, ChannelID, Text, VideoPath);
|
|
|
|
OPI_TestDataRetrieval.WriteLog(Result, "SendVideo (Path)");
|
|
|
|
Result = OPI_Telegram.SendVideo(Token, ChannelID, Text, VideoDD);
|