mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-01-08 04:04:03 +02:00
17 lines
614 B
Plaintext
17 lines
614 B
Plaintext
Token = "6129457865:AAFyzNYOAFbu...";
|
|
ChatID = "461699897";
|
|
ChannelID = "@testsichee";
|
|
Text = "Строковое значение";
|
|
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);
|