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