Telegram.Bot (Get file upload progress)

0

Hello friends, I am writing to you to see who can help me with the following, I am working with Telegram.Bot api and so far it is very good, the problem starts when I want to upload a file and even though I send it, if the file is very large, I do not have anything visual to indicate its progress, how much is missing or how much it takes.

Annex the line of code that I use.

Bot.SendDocumentAsync(Settings.Default.idTelegram, new Telegram.Bot.Types.InputFiles.InputOnlineFile(System.IO.File.Open(ofd.FileName, FileMode.Open), ofd.SafeFileName));

It's totally functional, I just need to get the progress to show it in a label that I already have ready for it.

    
asked by Rigor Rico 28.07.2018 в 17:57
source

0 answers