1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-02-09 13:47:03 +02:00
Vitaly the Alpaca (bot) 4a9fd2c336 Main build (Jenkins)
2024-09-24 11:38:18 +03:00

20 lines
652 B
Plaintext

Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "461699897";
Text = "Строковое значение";
Image = "https://openintegrations.dev/test_data/picture.jpg";
Video = "https://openintegrations.dev/test_data/video.mp4";
ImagePath = GetTempFileName("png");
CopyFile(Image, ImagePath);
VideoPath = GetTempFileName("mp4");
CopyFile(Video, VideoPath);
VideoDD = New BinaryData(VideoPath);
MediaGroup = New Map;
MediaGroup.Insert(ImagePath, "photo");
MediaGroup.Insert(VideoDD , "video");
Result = OPI_Telegram.SendMediaGroup(Token, ChatID, Text, MediaGroup);