2025-10-21 11:36:43 +03:00
|
|
|
Token = "6129457865:AAFyzNYOAFbu...";
|
|
|
|
|
ChatID = "461699897";
|
|
|
|
|
ChannelID = "@testsichee";
|
|
|
|
|
Text = "Строковое значение";
|
|
|
|
|
Video = "https://hut.openintegrations.dev/test_data/video.mp4";
|
2025-07-06 01:01:25 +03:00
|
|
|
|
|
|
|
|
VideoPath = GetTempFileName("mp4");
|
|
|
|
|
CopyFile(Video, VideoPath);
|
|
|
|
|
|
|
|
|
|
VideoDD = New BinaryData(VideoPath);
|
|
|
|
|
|
2025-09-22 22:16:56 +03:00
|
|
|
// In chat, by URL
|
2025-07-06 01:01:25 +03:00
|
|
|
Result = OPI_Telegram.SendVideo(Token, ChatID, Text, Video);
|
|
|
|
|
|
2025-09-22 22:16:56 +03:00
|
|
|
// To channel, on disk
|
2025-07-06 01:01:25 +03:00
|
|
|
Result = OPI_Telegram.SendVideo(Token, ChannelID, Text, VideoPath);
|
|
|
|
|
|
2025-09-22 22:16:56 +03:00
|
|
|
// To channel, from binary data
|
2025-07-06 01:01:25 +03:00
|
|
|
Result = OPI_Telegram.SendVideo(Token, ChannelID, Text, VideoDD);
|