2024-08-13 17:25:31 +03:00
|
|
|
Token = "6129457865:AAFyzNYOAFbu...";
|
|
|
|
ChatID = "461699897";
|
|
|
|
Text = "Строковое значение";
|
2024-08-19 09:33:52 +03:00
|
|
|
Image = "https://openintegrations.dev/test_data/picture.jpg";
|
|
|
|
Video = "https://openintegrations.dev/test_data/video.mp4";
|
2024-08-13 14:04:54 +00:00
|
|
|
|
|
|
|
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);
|