1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-05-27 23:07:37 +02:00

17 lines
578 B
Plaintext
Raw Normal View History

 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);
Result = OPI_Telegram.SendGif(Token, ChannelID, Text, GifPath);
Result = OPI_Telegram.SendGif(Token, ChannelID, Text, GifDD);