1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/examples/Telegram/SendVideo.txt
Vitaly the Alpaca (bot) aa10e4c564 Main build (Jenkins)
2025-10-21 11:36:43 +03:00

20 lines
647 B
Plaintext
Vendored

Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "461699897";
ChannelID = "@testsichee";
Text = "Строковое значение";
Video = "https://hut.openintegrations.dev/test_data/video.mp4";
VideoPath = GetTempFileName("mp4");
CopyFile(Video, VideoPath);
VideoDD = New BinaryData(VideoPath);
// In chat, by URL
Result = OPI_Telegram.SendVideo(Token, ChatID, Text, Video);
// To channel, on disk
Result = OPI_Telegram.SendVideo(Token, ChannelID, Text, VideoPath);
// To channel, from binary data
Result = OPI_Telegram.SendVideo(Token, ChannelID, Text, VideoDD);