You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-29 22:27:42 +02:00
20 lines
647 B
Plaintext
Vendored
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);
|