1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-03 22:39:12 +02:00
Files
OpenIntegrations/docs/en/examples/Telegram/SendVideo.txt

20 lines
647 B
Plaintext
Raw Normal View History

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);