Video & Video Note
Xondamir Abduxoshimov
private async void Xabar_Kelganda(object sender, MessageEventArgs e)
{
if(e.Message.Text == "video yubor")
{
using (var stream = System.IO.File.OpenRead("D:/video.mp4"))
{
await client.SendVideoAsync(
chatId: e.Message.Chat.Id,
video: stream,
/*
// zoom rasm
thumb: "http://inordic.ru/images/news/2019/cs.jpg",
duration: 30, // davomiyligi
height: 300, // balandligi
width: 300, // kengligi
*/
supportsStreaming: true, // videoni yuklash davomida ochish
replyToMessageId: e.Message.MessageId,
disableNotification: true
);
}
}
}



Last updated
Was this helpful?