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

17 lines
614 B
Plaintext
Raw Normal View History

2024-09-21 10:57:02 +03:00
 Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "461699897";
ChannelID = "@testsichee";
Text = "Строковое значение";
2024-09-24 22:38:15 +03:00
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
ImagePath = GetTempFileName("png");
CopyFile(Image, ImagePath);
ImageDD = New BinaryData(ImagePath);
Result = OPI_Telegram.SendImage(Token, ChatID, Text, Image);
Result = OPI_Telegram.SendImage(Token, ChannelID, Text, ImagePath);
Result = OPI_Telegram.SendImage(Token, ChannelID, Text, ImageDD);