public Task <byte[]> DownloadFileAsync(File file) { var wc = new WebClient(); return(wc.DownloadDataTaskAsync(GetFileDownloadUri(file))); }
public string GetFileDownloadUri(File file) { return($"https://api.telegram.org/file/bot{_token}/{file.FilePath}"); }