1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-06-04 23:37:46 +02:00

17 lines
612 B
Plaintext
Raw Normal View History

2024-09-21 10:57:02 +03:00
 Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "461699897";
ChannelID = "@testsichee";
Text = "Строковое значение";
2024-10-15 09:53:37 +03:00
Video = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4";
VideoPath = GetTempFileName("mp4");
CopyFile(Video, VideoPath);
VideoDD = New BinaryData(VideoPath);
Result = OPI_Telegram.SendVideo(Token, ChatID, Text, Video);
Result = OPI_Telegram.SendVideo(Token, ChannelID, Text, VideoPath);
Result = OPI_Telegram.SendVideo(Token, ChannelID, Text, VideoDD);