1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-18 05:18:06 +02:00
OpenIntegrations/docs/en/examples/Telegram/SendImage.txt

17 lines
508 B
Plaintext

Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "461699897";
ChannelID = "@testsichee";
Text = "String value";
Image = "https://openintegrations.dev/test_data/picture.jpg";
ImagePath = GetTempFileName("png");
FileCopy(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);