1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-08 04:04:03 +02:00
OpenIntegrations/docs/en/examples/Telegram/SendGif.txt

17 lines
594 B
Plaintext

Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "461699897";
ChannelID = "@testsichee";
Text = "Строковое значение";
GIF = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/animation.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);